From c30bc5440c05444f45e9456295d009f3f17dec6f Mon Sep 17 00:00:00 2001 From: IThundxr Date: Fri, 8 Mar 2024 11:12:25 -0500 Subject: [PATCH 1/2] Fix chromatic compound not working under y 0 --- .../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 d6f989f42a..e0fa4d9bb5 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 boolean onEntityItemUpdate(ItemStack stack, ItemEntity entity) { BlockPos.MutableBlockPos testPos = new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ); - while (testPos.getY() > 0) { + while (testPos.getY() > -64) { testPos.move(Direction.DOWN); BlockState state = world.getBlockState(testPos); if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK) From f496a1dd370b7d3b4f731bab8914b64b2197aa8d Mon Sep 17 00:00:00 2001 From: IThundxr Date: Fri, 8 Mar 2024 11:19:10 -0500 Subject: [PATCH 2/2] 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 e0fa4d9bb5..170a36d496 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 boolean onEntityItemUpdate(ItemStack stack, ItemEntity entity) { BlockPos.MutableBlockPos testPos = new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ); - while (testPos.getY() > -64) { + while (testPos.getY() > minHeight) { testPos.move(Direction.DOWN); BlockState state = world.getBlockState(testPos); if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK)