InGamePacketHandler: skip processing movement if the player's position

was changed during processing other properties (#4913)

fixes #4952
This commit is contained in:
Rush2929
2022-04-11 05:02:21 +09:00
committed by Dylan K. Taylor
parent 2efce35331
commit 741182c55f
2 changed files with 9 additions and 2 deletions

View File

@ -228,8 +228,10 @@ class InGamePacketHandler extends PacketHandler{
$this->player->jump();
}
//TODO: this packet has WAYYYYY more useful information that we're not using
$this->player->handleMovement($newPos);
if(!$this->forceMoveSync){
//TODO: this packet has WAYYYYY more useful information that we're not using
$this->player->handleMovement($newPos);
}
$packetHandled = true;