all entities will always tick

This commit is contained in:
GameHerobrine 2025-06-05 01:15:20 +03:00
parent 4430ab5b65
commit 60c29e9dd1
2 changed files with 11 additions and 29 deletions

View file

@ -574,10 +574,9 @@ class Level{
if($e->class === ENTITY_MOB && !$e->isPlayer()){
++$this->totalMobsAmount;
}
if($e->isPlayer() || $e->needsUpdate){
$e->update($currentTime);
if(!$e->isPlayer()) $post[] = $k;
}
$e->update($currentTime);
if(!$e->isPlayer()) $post[] = $k;
if($e instanceof Entity){
$newChunkX = (int)$e->x >> 4;