mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
all entities will always tick
This commit is contained in:
parent
4430ab5b65
commit
60c29e9dd1
2 changed files with 11 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue