isBaby changed to IsBaby, methods for animals were added

This commit is contained in:
GameHerobrine 2022-06-07 21:39:23 +03:00
parent 327e74e7aa
commit eb1f1e3d02
9 changed files with 88 additions and 79 deletions

View file

@ -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();
}
}