mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-11 09:51:35 +01:00
fix: simulate phyiscs updating player onGround when it should not
This commit is contained in:
parent
5c050c66ca
commit
ea4769817d
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user