fixed villager

This commit is contained in:
GameHerobrine 2023-02-21 23:41:28 +03:00
parent 4f8ec638c1
commit faf788e2d5

View file

@ -5,9 +5,10 @@ class Villager extends Neutral //TODO AI
const TYPE = MOB_VILLAGER;
public function __construct(Level $level, $eid, $class, $type = 0, $data = []){
$this->setSize(0.6, 1.8);
$this->setSpeed(0.3);
$this->setName("Villager");
parent::__construct($level, $eid, $class, $type, $data);
$this->setSpeed(0.3);
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 10, "generic");
$this->setName("Villager");
}
}