mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed Entity updates not firing
This commit is contained in:
parent
18f6bad48d
commit
7b7b91ea0d
@ -475,7 +475,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->closed or !$entity->onUpdate($currentTick)){
|
||||
unset($this->updateEntities[$id]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user