Skip to content

Commit 5adb835

Browse files
authored
Fix chromatic compound not working under y0 (#6227)
* Fix chromatic compound not working under y 0 * Switch away from constant
1 parent bb7e835 commit 5adb835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/simibubi/create/content/legacy/ChromaticCompoundItem.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public boolean onEntityItemUpdate(ItemStack stack, ItemEntity entity) {
133133
BlockPos.MutableBlockPos testPos =
134134
new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ);
135135

136-
while (testPos.getY() > 0) {
136+
while (testPos.getY() > minHeight) {
137137
testPos.move(Direction.DOWN);
138138
BlockState state = world.getBlockState(testPos);
139139
if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK)

0 commit comments

Comments
 (0)