From fa91bbd98a4a1bfeefc108b38f46640ba766ab66 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 9 Jan 2024 00:06:33 +0300 Subject: [PATCH] fixed block update queue --- src/world/Level.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/world/Level.php b/src/world/Level.php index ab5ed1d5..1cafeabe 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -390,7 +390,7 @@ class Level{ } $player->sendEntityMovementUpdateQueue(); - foreach($this->queuedBlockUpdates as $update){ + foreach($this->queuedBlockUpdates as $ind => $update){ $x = $update[0]; $y = $update[1]; $z = $update[2]; @@ -398,6 +398,7 @@ class Level{ $id = $idmeta[0]; $meta = $idmeta[1]; $player->addBlockUpdateIntoQueue($x, $y, $z, $id, $meta); + unset($this->queuedBlockUpdates[$ind]); } $player->sendBlockUpdateQueue(); }