This commit is contained in:
kotyara 2024-03-15 20:13:32 +05:00 • committed by GitHub
parent 437576a981
commit a4b7fbf2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 24 deletions

View file

@ -65,7 +65,7 @@ abstract class Animal extends Creature implements Ageable, Breedable{
}
if($this->isInLove() && !isset($this->level->entitiesInLove[$this->eid])){
$this->level->entitiesInLove[$this->eid] = true;
}else if(!$this->isInLove() && isset($this->level->entitiesInLove[$this->eid])){
}elseif(!$this->isInLove() && isset($this->level->entitiesInLove[$this->eid])){
unset($this->level->entitiesInLove[$this->eid]);
}
}