mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
add defaults to MobEffectPacket
these fields may be unspecified if we are only removing effects
This commit is contained in:
parent
105917a534
commit
3463bea932
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user