Fix chromatic compound not working under y0 (#6227)

* Fix chromatic compound not working under y 0

* Switch away from constant
This commit is contained in:
IThundxr 2024-03-16 12:27:18 -04:00 committed by GitHub
parent bb7e835a8d
commit 5adb835502
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,7 +133,7 @@ public class ChromaticCompoundItem extends Item {
BlockPos.MutableBlockPos testPos =
new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ);
while (testPos.getY() > 0) {
while (testPos.getY() > minHeight) {
testPos.move(Direction.DOWN);
BlockState state = world.getBlockState(testPos);
if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK)