From 89d05a89ecce3f1b45a3d7e9d28a626ccc8ee2b1 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sat, 29 Jun 2024 19:09:23 +0800 Subject: [PATCH] revert: revert cb5098f8 --- .../server/world/service/AllayEntityPhysicsService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Allay-Server/src/main/java/org/allaymc/server/world/service/AllayEntityPhysicsService.java b/Allay-Server/src/main/java/org/allaymc/server/world/service/AllayEntityPhysicsService.java index dc45c9043..5638292e3 100644 --- a/Allay-Server/src/main/java/org/allaymc/server/world/service/AllayEntityPhysicsService.java +++ b/Allay-Server/src/main/java/org/allaymc/server/world/service/AllayEntityPhysicsService.java @@ -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); } } }