mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Fixed squid not updating and added some debug
This commit is contained in:
parent
394f420059
commit
6504fdabab
@ -1264,6 +1264,7 @@ 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));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,8 +90,6 @@ class Squid extends WaterAnimal implements Ageable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->lastUpdate = $currentTick;
|
|
||||||
|
|
||||||
$this->timings->startTiming();
|
$this->timings->startTiming();
|
||||||
|
|
||||||
$hasUpdate = parent::onUpdate($currentTick);
|
$hasUpdate = parent::onUpdate($currentTick);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user