mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
fix tick diff debug spam when entities are spawned
This commit is contained in:
parent
07abd61f73
commit
3e3157cbe1
@ -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()){
|
||||
|
Loading…
x
Reference in New Issue
Block a user