mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
small fixes
This commit is contained in:
parent
7b66cd0250
commit
ae8c541452
5 changed files with 23 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue