mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
isBaby changed to IsBaby, methods for animals were added
This commit is contained in:
parent
327e74e7aa
commit
eb1f1e3d02
9 changed files with 88 additions and 79 deletions
|
|
@ -5,6 +5,14 @@ move methods
|
|||
*/
|
||||
class Animal extends Creature implements Ageable{
|
||||
public function isBaby(){
|
||||
return $this->data["isBaby"];
|
||||
return $this->data["IsBaby"];
|
||||
}
|
||||
|
||||
public function environmentUpdate(){
|
||||
if($this->server->api->getProperty("spawn-animals") !== true){
|
||||
$this->close();
|
||||
return false;
|
||||
}
|
||||
parent::environmentUpdate();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue