From 5adb835502587c5de2c95912047e5867b6dd56ef Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sat, 16 Mar 2024 12:27:18 -0400 Subject: [PATCH] Fix chromatic compound not working under y0 (#6227) * Fix chromatic compound not working under y 0 * Switch away from constant --- .../simibubi/create/content/legacy/ChromaticCompoundItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/legacy/ChromaticCompoundItem.java b/src/main/java/com/simibubi/create/content/legacy/ChromaticCompoundItem.java index d6f989f42..170a36d49 100644 --- a/src/main/java/com/simibubi/create/content/legacy/ChromaticCompoundItem.java +++ b/src/main/java/com/simibubi/create/content/legacy/ChromaticCompoundItem.java @@ -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)