diff --git a/src/pocketmine/level/format/generic/BaseFullChunk.php b/src/pocketmine/level/format/generic/BaseFullChunk.php index 52013f6a0..3e48091f5 100644 --- a/src/pocketmine/level/format/generic/BaseFullChunk.php +++ b/src/pocketmine/level/format/generic/BaseFullChunk.php @@ -237,13 +237,13 @@ abstract class BaseFullChunk implements FullChunk{ public function addTile(Tile $tile){ $this->tiles[$tile->getID()] = $tile; - $this->tiles[(($tile->z & 0x0f) << 12) | (($tile->x & 0x0f) << 8) | ($tile->y & 0xff)] = $tile; + $this->tileList[(($tile->z & 0x0f) << 12) | (($tile->x & 0x0f) << 8) | ($tile->y & 0xff)] = $tile; $this->hasChanged = true; } public function removeTile(Tile $tile){ unset($this->tiles[$tile->getID()]); - unset($this->tiles[(($tile->z & 0x0f) << 12) | (($tile->x & 0x0f) << 8) | ($tile->y & 0xff)]); + unset($this->tileList[(($tile->z & 0x0f) << 12) | (($tile->x & 0x0f) << 8) | ($tile->y & 0xff)]); $this->hasChanged = true; } @@ -329,4 +329,4 @@ abstract class BaseFullChunk implements FullChunk{ $this->hasChanged = (bool) $changed; } -} \ No newline at end of file +}