diff --git a/src/network/mcpe/handler/InGamePacketHandler.php b/src/network/mcpe/handler/InGamePacketHandler.php index 92970604d..fe40ab6e8 100644 --- a/src/network/mcpe/handler/InGamePacketHandler.php +++ b/src/network/mcpe/handler/InGamePacketHandler.php @@ -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; diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index 5233cf18d..4ade6cecd 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -85,3 +85,8 @@ parameters: count: 2 path: ../../../src/world/format/io/region/RegionLoader.php + - + message: "#^Negated boolean expression is always true\\.$#" + count: 1 + path: ../../../src/network/mcpe/handler/InGamePacketHandler.php +