mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Unnecessary ":?" (2)
This commit is contained in:
parent
0f26e45638
commit
69385e16f2
21 changed files with 36 additions and 48 deletions
|
|
@ -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(isset($this->data["Health"]) ? $this->data["Health"] : 4, "generic");
|
||||
$this->setHealth($this->data["Health"] ?? 4, "generic");
|
||||
$this->setName('Chicken');
|
||||
$this->setSpeed(0.25);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue