mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
InGamePacketHandler: reduce debug noise on outdated movements
This commit is contained in:
parent
f5b4d64668
commit
7b55c984bf
@ -214,7 +214,7 @@ class InGamePacketHandler extends PacketHandler{
|
|||||||
if($newPos->distanceSquared($curPos) > 1){ //Tolerate up to 1 block to avoid problems with client-sided physics when spawning in blocks
|
if($newPos->distanceSquared($curPos) > 1){ //Tolerate up to 1 block to avoid problems with client-sided physics when spawning in blocks
|
||||||
$this->session->getLogger()->debug("Got outdated pre-teleport movement, received " . $newPos . ", expected " . $curPos);
|
$this->session->getLogger()->debug("Got outdated pre-teleport movement, received " . $newPos . ", expected " . $curPos);
|
||||||
//Still getting movements from before teleport, ignore them
|
//Still getting movements from before teleport, ignore them
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Once we get a movement within a reasonable distance, treat it as a teleport ACK and remove position lock
|
// Once we get a movement within a reasonable distance, treat it as a teleport ACK and remove position lock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user