mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed mobs sending damage animation to player when they spawn
This commit is contained in:
parent
f572605472
commit
d28dad2a07
15 changed files with 15 additions and 15 deletions
|
|
@ -4,7 +4,7 @@ class Zombie extends Monster{
|
|||
function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
|
||||
$this->setSize(0.6, 1.85);
|
||||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->setHealth($this->data["Health"] ?? 12, "generic");
|
||||
$this->setHealth($this->data["Health"] ?? 12, "generic", allowHarm: false);
|
||||
$this->setName("Zombie");
|
||||
$this->setSpeed(0.23);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue