php8 explosion fixes

This commit is contained in:
GameHerobrine 2022-12-26 03:20:33 +03:00
parent 2cdf3ca8da
commit 6086c80dad
3 changed files with 17 additions and 3 deletions

View file

@ -20,7 +20,6 @@ class MobSpawner{
}
public function handle(){
return false;
if($this->countEntities() > self::MOB_LIMIT || count($this->level->players) <= 0){
return false; //not spawning
}