Fixed squid not updating and added some debug

This commit is contained in:
Dylan K. Taylor 2017-07-05 11:42:24 +01:00
parent 394f420059
commit 6504fdabab
2 changed files with 1 additions and 2 deletions

View File

@ -1264,6 +1264,7 @@ abstract class Entity extends Location implements Metadatable{
$tickDiff = $currentTick - $this->lastUpdate;
if($tickDiff <= 0){
$this->server->getLogger()->debug("Expected tick difference of at least 1, got $tickDiff for " . get_class($this));
return false;
}

View File

@ -90,8 +90,6 @@ class Squid extends WaterAnimal implements Ageable{
}
}
$this->lastUpdate = $currentTick;
$this->timings->startTiming();
$hasUpdate = parent::onUpdate($currentTick);