motion packet spam fix, explosion optimizations, tnt gravity fix

This commit is contained in:
GameHerobrine 2023-11-06 15:55:59 +03:00
parent 6e8d7bead3
commit 69d5589191
4 changed files with 96 additions and 53 deletions

View file

@ -1190,7 +1190,7 @@ class Player{
$headSent = true;
}
if($packets <= 0) return;
//console("Update {$e}: $packets, mot: $motionSent, mov: $moveSent, hed: $headSent");
$MTU = $this->MTU - 24;
if(($this->entityMovementQueueLength + $len) >= $MTU){
$this->sendEntityMovementUpdateQueue();