mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Remove scheduled updates from entities
This commit is contained in:
parent
dcfb7a7ac4
commit
acf7eb1ce9
@ -510,15 +510,15 @@ class Level implements ChunkManager, Metadatable{
|
||||
|
||||
$this->timings->entityTick->startTiming();
|
||||
//Update entities that need update
|
||||
if(count($this->updateEntities) > 0){
|
||||
//if(count($this->updateEntities) > 0){
|
||||
//Timings::$tickEntityTimer->startTiming();
|
||||
foreach($this->updateEntities as $id => $entity){
|
||||
foreach($this->entities as $id => $entity){
|
||||
if($entity->onUpdate() !== true){
|
||||
unset($this->updateEntities[$id]);
|
||||
}
|
||||
}
|
||||
//Timings::$tickEntityTimer->stopTiming();
|
||||
}
|
||||
//}
|
||||
$this->timings->entityTick->stopTiming();
|
||||
|
||||
$this->timings->tileEntityTick->startTiming();
|
||||
|
Loading…
x
Reference in New Issue
Block a user