mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Protect against null chunk on entity
This commit is contained in:
@@ -1313,6 +1313,10 @@ abstract class Entity extends Location implements Metadatable{
|
||||
}
|
||||
}
|
||||
|
||||
if($this->chunk === null){
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->chunk->addEntity($this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user