Fixed permission-related memory leak

This commit is contained in:
Shoghi Cervantes
2014-11-18 13:42:24 +01:00
parent c07b0ff35b
commit 9fd6a695f6
2 changed files with 10 additions and 0 deletions

View File

@ -176,6 +176,7 @@ abstract class Entity extends Location implements Metadatable{
$this->id = Entity::$entityCount++;
$this->justCreated = true;
$this->namedtag = $nbt;
$this->chunk = $chunk;
$this->setLevel($chunk->getProvider()->getLevel());
$this->server = $chunk->getProvider()->getLevel()->getServer();