extra.properties cleanup, fixed fire/water/lava collisions

This commit is contained in:
GameHerobrine 2023-09-03 08:47:39 +03:00
parent 86e32a1620
commit 8f720231fa
9 changed files with 20 additions and 31 deletions

View file

@ -356,11 +356,11 @@ class Level{
if($e->class === ENTITY_MOB && !$e->isPlayer()){
++$this->totalMobsAmount;
}
if($e->needsUpdate){
if($e->isPlayer() || $e->needsUpdate){
$e->update();
}
}
if(Entity::$updateOnTick && $server->ticks % 40 === 0){ //40 ticks delay
if($server->ticks % 40 === 0){ //40 ticks delay
$this->mobSpawner->handle();
}
}