Fixed crash when removing Tiles

This commit is contained in:
Shoghi Cervantes 2014-05-27 16:15:23 +02:00
parent 96b1831229
commit 3fc1be1262

View File

@ -101,7 +101,6 @@ abstract class Tile extends Position{
unset(Tile::$needUpdate[$this->id]); unset(Tile::$needUpdate[$this->id]);
$this->getLevel()->removeTile($this); $this->getLevel()->removeTile($this);
unset($this->getLevel()->chunkTiles[$this->chunkIndex][$this->id]); unset($this->getLevel()->chunkTiles[$this->chunkIndex][$this->id]);
unset(Tile::$list[$this->id]);
} }
} }