Skip to content

Commit

Permalink
revert: revert cb5098f
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 29, 2024
1 parent 9a58f53 commit 89d05a8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,9 @@ protected void handleScheduledMoveQueue() {
entityAABBTree.update(entity);
// ScheduledMove is not calculated by the server, but we need to calculate the onGround status
// If it's a server-calculated move, the onGround status will be calculated in applyMotion()
// var aabb = scheduledMove.entity.getOffsetAABB();
// aabb.minY -= FAT_AABB_MARGIN;
// entity.setOnGround(dimension.getCollidingBlocks(aabb) != null);
entity.setOnGround(abs(motion.y()) == 0);
var aabb = scheduledMove.entity.getOffsetAABB();
aabb.minY -= FAT_AABB_MARGIN;
entity.setOnGround(dimension.getCollidingBlocks(aabb) != null);
}
}
}
Expand Down

0 comments on commit 89d05a8

Please sign in to comment.