fix tick diff debug spam when entities are spawned

This commit is contained in:
Dylan K. Taylor 2017-10-17 17:38:43 +01:00
parent 07abd61f73
commit 3e3157cbe1

View File

@ -1279,8 +1279,11 @@ 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;
if(!$this->justCreated){
$this->server->getLogger()->debug("Expected tick difference of at least 1, got $tickDiff for " . get_class($this));
}
return true;
}
if(!$this->isAlive()){