Merge branch 'minor-next' into major-next

This commit is contained in:
Dylan K. Taylor
2023-04-10 14:38:23 +01:00
17 changed files with 427 additions and 222 deletions

View File

@ -211,7 +211,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