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

@ -78,7 +78,10 @@ class PrimedTNT extends Entity implements Explosive{
$this->timings->startTiming();
$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);