fixed mobs sending damage animation to player when they spawn

This commit is contained in:
GameHerobrine 2025-06-04 17:54:25 +03:00
parent f572605472
commit d28dad2a07
15 changed files with 15 additions and 15 deletions

View file

@ -7,7 +7,7 @@ class Chicken extends Animal{
$this->timeUntilEgg = mt_rand(0,6000) + 6000;
$this->setSize(0.4, 0.7);
parent::__construct($level, $eid, $class, $type, $data);
$this->setHealth($this->data["Health"] ?? 4, "generic");
$this->setHealth($this->data["Health"] ?? 4, "generic", allowHarm: false);
$this->setName('Chicken');
$this->setSpeed(0.25);