From 678d89adc6c65cf03f0541fe818e2a5b91b128d4 Mon Sep 17 00:00:00 2001 From: kotyaralih <62548070+kotyaralih@users.noreply.github.com> Date: Sun, 26 Dec 2021 08:16:54 -0800 Subject: [PATCH] Revert "Life is unfair" This reverts commit b7ecb29af66bf27b380b3f5901a55f28e8d1f05e. --- 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 e2d14338..aca19afb 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; }