From 909db6d7eb0c48f393a6df5132796c64643f9017 Mon Sep 17 00:00:00 2001 From: kotyaralih <62548070+kotyaralih@users.noreply.github.com> Date: Tue, 28 Dec 2021 09:32:17 -0800 Subject: [PATCH] Revert "Revert "Life is unfair"" This reverts commit 678d89adc6c65cf03f0541fe818e2a5b91b128d4. --- src/API/LevelAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/LevelAPI.php b/src/API/LevelAPI.php index aca19afb..e2d14338 100644 --- a/src/API/LevelAPI.php +++ b/src/API/LevelAPI.php @@ -196,7 +196,7 @@ class LevelAPI{ $timeu = microtime(true); foreach($blockUpdates->getAll() as $bupdate){ - $this->server->api->block->scheduleBlockUpdate(new Position((int) $bupdate["x"],(int) $bupdate["y"],(int) $bupdate["z"], $this->levels["name"]), (float) $bupdate["delay"], (int) $bupdate["type"]); + $this->server->api->block->scheduleBlockUpdate(new Position((int) $bupdate["x"],(int) $bupdate["y"],(int) $bupdate["z"], $this->levels[$name]), (float) $bupdate["delay"], (int) $bupdate["type"]); } return true; }