new ai task, fixes of old ones, php8 fixes

This commit is contained in:
GameHerobrine 2022-12-24 22:42:23 +03:00
parent a907a7cf5e
commit 80bdddb817
13 changed files with 1581 additions and 1458 deletions

View file

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