Protect against null chunk on entity

This commit is contained in:
Shoghi Cervantes 2015-04-20 17:29:58 +02:00
parent 15b4cd8fb3
commit f6e88ec055

View File

@ -1313,6 +1313,10 @@ abstract class Entity extends Location implements Metadatable{
}
}
if($this->chunk === null){
return true;
}
$this->chunk->addEntity($this);
}