mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
new ai task, fixes of old ones, php8 fixes
This commit is contained in:
parent
a907a7cf5e
commit
80bdddb817
13 changed files with 1581 additions and 1458 deletions
|
|
@ -14,6 +14,7 @@ abstract class Animal extends Creature implements Ageable, Breedable{
|
|||
if(isset($this->data["IsBaby"]) && $this->data["IsBaby"] && $this->getAge() >= 0){
|
||||
$this->setAge(-24000);
|
||||
}
|
||||
$this->ai->addTask(new TaskTempt());
|
||||
}
|
||||
|
||||
public function isBaby(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue