mob cap should be fixed

This commit is contained in:
GameHerobrine 2023-07-12 20:16:42 +03:00
parent 3ce6040bf3
commit 5723f88cba
2 changed files with 4 additions and 4 deletions

View file

@ -341,7 +341,7 @@ class Level{
continue;
}
if($e->type === ENTITY_MOB && !$e->isPlayer()){
if($e->class === ENTITY_MOB && !$e->isPlayer()){
++$this->totalMobsAmount;
}