mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Fixed #4051
This commit is contained in:
parent
9a3929d8ad
commit
dd22e4963f
@ -26,7 +26,6 @@ use pocketmine\event\entity\EntityDamageByEntityEvent;
|
|||||||
use pocketmine\event\entity\EntityDamageEvent;
|
use pocketmine\event\entity\EntityDamageEvent;
|
||||||
use pocketmine\item\Item as ItemItem;
|
use pocketmine\item\Item as ItemItem;
|
||||||
use pocketmine\math\Vector3;
|
use pocketmine\math\Vector3;
|
||||||
use pocketmine\network\Network;
|
|
||||||
use pocketmine\network\protocol\AddEntityPacket;
|
use pocketmine\network\protocol\AddEntityPacket;
|
||||||
use pocketmine\network\protocol\EntityEventPacket;
|
use pocketmine\network\protocol\EntityEventPacket;
|
||||||
use pocketmine\Player;
|
use pocketmine\Player;
|
||||||
@ -46,8 +45,8 @@ class Squid extends WaterAnimal implements Ageable{
|
|||||||
private $switchDirectionTicker = 0;
|
private $switchDirectionTicker = 0;
|
||||||
|
|
||||||
public function initEntity(){
|
public function initEntity(){
|
||||||
$this->setMaxHealth(5);
|
|
||||||
parent::initEntity();
|
parent::initEntity();
|
||||||
|
$this->setMaxHealth(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(){
|
public function getName(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user