Improved updates after first tick

This commit is contained in:
Shoghi Cervantes
2015-05-28 22:43:39 +02:00
parent 03f178379e
commit 75cab3dfc3
5 changed files with 77 additions and 75 deletions

View File

@ -83,7 +83,10 @@ abstract class Projectile extends Entity{
}
$tickDiff = max(1, $currentTick - $this->lastUpdate);
$tickDiff = $currentTick - $this->lastUpdate;
if($tickDiff <= 0 and !$this->justCreated){
return true;
}
$this->lastUpdate = $currentTick;
$hasUpdate = $this->entityBaseTick($tickDiff);