mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 22:15:30 +00:00
Fixed entities not updating
This commit is contained in:
parent
508ee7e1d6
commit
523c4390fa
@ -366,7 +366,6 @@ class Entity extends Position{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$hasUpdate = false;
|
|
||||||
$now = microtime(true);
|
$now = microtime(true);
|
||||||
if($this->check === false){
|
if($this->check === false){
|
||||||
$this->lastUpdate = $now;
|
$this->lastUpdate = $now;
|
||||||
@ -378,6 +377,7 @@ class Entity extends Position{
|
|||||||
$this->tickCounter = 1;
|
$this->tickCounter = 1;
|
||||||
$hasUpdate = $this->environmentUpdate();
|
$hasUpdate = $this->environmentUpdate();
|
||||||
}else{
|
}else{
|
||||||
|
$hasUpdate = true;
|
||||||
$this->tickCounter = 0;
|
$this->tickCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user