fixed swimming + some entity movement tweaks

This commit is contained in:
GameHerobrine 2023-02-22 15:56:58 +03:00
parent af36fb318a
commit 2342e1e783
4 changed files with 17 additions and 8 deletions

View file

@ -22,6 +22,7 @@ abstract class Animal extends Creature implements Ageable, Breedable{
public function harm($dmg, $cause = "generic", $force = false){
$ret = parent::harm($dmg, $cause, $force);
$this->inPanic |= ($ret && is_numeric($cause));
$this->inLove = false;
return $ret;
}