mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Fixed merge error in bbf3f4c476bb203f399b7631a7d69013980bbae8
the corresponding code on PM3 was originally removed here: 485f573955 (diff-cf181dff0292664e4aa13c8a1731dc62131489fa404f4ac1357493d320264cceL2263)
This commit is contained in:
parent
d35e818ea0
commit
c5abae9eaa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user