fix: simulate phyiscs updating player onGround when it should not

This commit is contained in:
DeidaraMC 2024-05-01 10:01:01 -04:00 committed by iam
parent 5c050c66ca
commit ea4769817d
1 changed files with 1 additions and 2 deletions

View File

@ -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));
}
}