mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-27 20:34:43 +01:00
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:
parent
bb7e835a8d
commit
5adb835502
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ public class ChromaticCompoundItem extends Item {
|
||||||
BlockPos.MutableBlockPos testPos =
|
BlockPos.MutableBlockPos testPos =
|
||||||
new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ);
|
new BlockPos.MutableBlockPos(entityX, Math.min(Mth.floor(entity.getY()), localWorldHeight), entityZ);
|
||||||
|
|
||||||
while (testPos.getY() > 0) {
|
while (testPos.getY() > minHeight) {
|
||||||
testPos.move(Direction.DOWN);
|
testPos.move(Direction.DOWN);
|
||||||
BlockState state = world.getBlockState(testPos);
|
BlockState state = world.getBlockState(testPos);
|
||||||
if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK)
|
if (state.getLightBlock(world, testPos) >= 15 && state.getBlock() != Blocks.BEDROCK)
|
||||||
|
|
Loading…
Add table
Reference in a new issue