mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
monsters are separated now
This commit is contained in:
parent
27be94ad1b
commit
dbc199f34b
10 changed files with 112 additions and 79 deletions
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
class Monster extends Creature{
|
||||
public function environmentUpdate(){
|
||||
parent::environmentUpdate();
|
||||
if($this->server->api->getProperty("spawn-mobs") !== true){
|
||||
$this->close();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue