fixed division by zero when breaking tnt, (hopefully?) fixed empty chests

This commit is contained in:
GameHerobrine 2025-07-03 20:57:00 +03:00
parent 6c7bcf014b
commit a62986a8d6
3 changed files with 7 additions and 5 deletions

View file

@ -1696,7 +1696,6 @@ class Player{
$len = 1 + strlen($pk->buffer);
$MTU = $this->MTU - 24;
if($len > $MTU) return $this->blockQueueDataPacket_big($pk);
if(($this->blockUpdateQueueLength + $len) >= $MTU){
$this->sendBlockUpdateQueue();
}