diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 78bdb022..20279b23 100644 --- a/src/PocketMinecraftServer.php +++ b/src/PocketMinecraftServer.php @@ -620,7 +620,7 @@ class PocketMinecraftServer{ ++$actionCount; try{ $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; } }else{ diff --git a/src/world/Level.php b/src/world/Level.php index 50466363..39c86ebd 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -385,6 +385,8 @@ class Level{ } $player->sendBlockUpdateQueue(); } + + $this->queuedBlockUpdates = []; } public function addBlockToSendQueue($x, $y, $z, $id, $meta){