mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +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;
|
$tickDiff = $currentTick - $this->lastUpdate;
|
||||||
if($tickDiff <= 0){
|
if($tickDiff <= 0){
|
||||||
$this->server->getLogger()->debug("Expected tick difference of at least 1, got $tickDiff for " . get_class($this));
|
if(!$this->justCreated){
|
||||||
return false;
|
$this->server->getLogger()->debug("Expected tick difference of at least 1, got $tickDiff for " . get_class($this));
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->isAlive()){
|
if(!$this->isAlive()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user