mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Added API method Entity->isClosed() and made Entity->closed protected
This commit is contained in:
@ -722,7 +722,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
//Update entities that need update
|
||||
Timings::$tickEntityTimer->startTiming();
|
||||
foreach($this->updateEntities as $id => $entity){
|
||||
if($entity->closed or !$entity->onUpdate($currentTick)){
|
||||
if($entity->isClosed() or !$entity->onUpdate($currentTick)){
|
||||
unset($this->updateEntities[$id]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user