mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
add defaults to MobEffectPacket
these fields may be unspecified if we are only removing effects
This commit is contained in:
@ -36,9 +36,9 @@ class MobEffectPacket extends DataPacket{
|
||||
public $eid;
|
||||
public $eventId;
|
||||
public $effectId;
|
||||
public $amplifier;
|
||||
public $amplifier = 0;
|
||||
public $particles = true;
|
||||
public $duration;
|
||||
public $duration = 0;
|
||||
|
||||
public function decode(){
|
||||
$this->eid = $this->getEntityRuntimeId();
|
||||
|
Reference in New Issue
Block a user