diff --git a/src/entity/neutral/Villager.php b/src/entity/neutral/Villager.php index fc5756fb..90153868 100644 --- a/src/entity/neutral/Villager.php +++ b/src/entity/neutral/Villager.php @@ -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"); } }