Fixed merge error in bbf3f4c476bb203f399b7631a7d69013980bbae8

the corresponding code on PM3 was originally removed here: 485f573955 (diff-cf181dff0292664e4aa13c8a1731dc62131489fa404f4ac1357493d320264cceL2263)
This commit is contained in:
Dylan K. Taylor 2021-07-17 22:59:45 +01:00
parent d35e818ea0
commit c5abae9eaa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -180,7 +180,6 @@ class InGamePacketHandler extends PacketHandler{
$newPos = $packet->position->subtract(0, 1.62, 0);
if($this->forceMoveSync and $newPos->distanceSquared($curPos) > 1){ //Tolerate up to 1 block to avoid problems with client-sided physics when spawning in blocks
$this->session->syncMovement($curPos, null, null, MovePlayerPacket::MODE_RESET);
$this->session->getLogger()->debug("Got outdated pre-teleport movement, received " . $newPos . ", expected " . $curPos);
//Still getting movements from before teleport, ignore them
return false;