diff --git a/src/world/Level.php b/src/world/Level.php index 33c8f3fd..af3995a1 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -131,7 +131,7 @@ class Level{ $Z = array_pop($X); $X = array_pop($X); if(!$this->isSpawnChunk($X, $Z)){ - $this->level->unloadChunk((int) array_pop($X), (int) $Z, $this->server->saveEnabled); + $this->level->unloadChunk((int) $X, (int) $Z, $this->server->saveEnabled); } } }