From ea4769817d3c23c263546f4648fdaacd6e50005f Mon Sep 17 00:00:00 2001 From: DeidaraMC Date: Wed, 1 May 2024 10:01:01 -0400 Subject: [PATCH] fix: simulate phyiscs updating player onGround when it should not --- src/main/java/net/minestom/server/entity/Entity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index dfa7d4897..092653e9a 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -602,9 +602,8 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev if (!ChunkUtils.isLoaded(finalChunk)) return; velocity = physicsResult.newVelocity().mul(ServerFlag.SERVER_TICKS_PER_SECOND); - onGround = physicsResult.isOnGround(); - if (!PlayerUtils.isSocketClient(this)) { + onGround = physicsResult.isOnGround(); refreshPosition(physicsResult.newPosition(), true, !SYNCHRONIZE_ONLY_ENTITIES.contains(entityType)); } }