InGamePacketHandler: reduce debug noise on outdated movements

This commit is contained in:
Dylan K. Taylor 2023-04-07 21:40:46 +01:00
parent f5b4d64668
commit 7b55c984bf
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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
$this->session->getLogger()->debug("Got outdated pre-teleport movement, received " . $newPos . ", expected " . $curPos);
//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