mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed villager
This commit is contained in:
parent
4f8ec638c1
commit
faf788e2d5
1 changed files with 3 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue