Skip to content

Commit

Permalink
Use minHeight instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Aug 20, 2024
1 parent 2d70bb5 commit 4aca704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ private void processHighCraft(int minY, int maxY) {
final MovecraftLocation middle = oldHitBox.getMidPoint();
int testY;

for (testY = minY; testY > 0; testY--) {
for (testY = minY; testY > world.getMinHeight(); testY--) {
if (!craft.getWorld().getBlockAt(middle.getX(), testY - 1, middle.getZ()).getType().isAir()) {
break;
}
Expand Down

0 comments on commit 4aca704

Please sign in to comment.