fixed tickerfunction and queue after rollback

This commit is contained in:
GameHerobrine 2024-01-13 11:00:22 +03:00
parent 5a059eab71
commit c3e6554762
2 changed files with 3 additions and 1 deletions

View file

@ -620,7 +620,7 @@ class PocketMinecraftServer{
++$actionCount; ++$actionCount;
try{ try{
$return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null $return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null
}catch(ValueError $e){ }catch(Throwable $e){
$return = false; $return = false;
} }
}else{ }else{

View file

@ -385,6 +385,8 @@ class Level{
} }
$player->sendBlockUpdateQueue(); $player->sendBlockUpdateQueue();
} }
$this->queuedBlockUpdates = [];
} }
public function addBlockToSendQueue($x, $y, $z, $id, $meta){ public function addBlockToSendQueue($x, $y, $z, $id, $meta){