small fixes

This commit is contained in:
GameHerobrine 2022-10-19 19:02:59 +03:00
parent 7b66cd0250
commit ae8c541452
5 changed files with 23 additions and 11 deletions

View file

@ -1,10 +1,12 @@
<?php
class Monster extends Creature{
public function environmentUpdate(){
parent::environmentUpdate();
$upd = parent::environmentUpdate();
if($this->server->api->getProperty("spawn-mobs") !== true){
$this->close();
return false;
}
return $upd;
}
}