Fixed Entity updates not firing

This commit is contained in:
Shoghi Cervantes 2014-10-15 10:13:49 +02:00
parent 18f6bad48d
commit 7b7b91ea0d

View File

@ -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]);
}
}