mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +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 $eid;
|
||||||
public $eventId;
|
public $eventId;
|
||||||
public $effectId;
|
public $effectId;
|
||||||
public $amplifier;
|
public $amplifier = 0;
|
||||||
public $particles = true;
|
public $particles = true;
|
||||||
public $duration;
|
public $duration = 0;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->eid = $this->getEntityRuntimeId();
|
$this->eid = $this->getEntityRuntimeId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user