Improved Level object deallocation

This commit is contained in:
Shoghi Cervantes
2014-10-19 20:45:03 +02:00
parent f2b573c32f
commit 2f8267aa1e
6 changed files with 7 additions and 3 deletions

View File

@ -1189,6 +1189,7 @@ abstract class Entity extends Location implements Metadatable{
$level->removeEntity($this);
}
$this->despawnFromAll();
$this->level = null;
}
}