mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +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
|
//Update entities that need update
|
||||||
Timings::$tickEntityTimer->startTiming();
|
Timings::$tickEntityTimer->startTiming();
|
||||||
foreach($this->updateEntities as $id => $entity){
|
foreach($this->updateEntities as $id => $entity){
|
||||||
if(!$entity->closed or !$entity->onUpdate($currentTick)){
|
if($entity->closed or !$entity->onUpdate($currentTick)){
|
||||||
unset($this->updateEntities[$id]);
|
unset($this->updateEntities[$id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user