mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed effect entity id
This commit is contained in:
@ -238,7 +238,7 @@ class Effect{
|
||||
public function add(Entity $entity, $modify = false){
|
||||
if($entity instanceof Player){
|
||||
$pk = new MobEffectPacket();
|
||||
$pk->eid = $entity->getId();
|
||||
$pk->eid = 0;
|
||||
$pk->effectId = $this->getId();
|
||||
$pk->amplifier = $this->getAmplifier();
|
||||
$pk->particles = $this->isVisible();
|
||||
@ -261,7 +261,7 @@ class Effect{
|
||||
public function remove(Entity $entity){
|
||||
if($entity instanceof Player){
|
||||
$pk = new MobEffectPacket();
|
||||
$pk->eid = $entity->getId();
|
||||
$pk->eid = 0;
|
||||
$pk->eventId = MobEffectPacket::EVENT_REMOVE;
|
||||
$pk->effectId = $this->getId();
|
||||
|
||||
|
Reference in New Issue
Block a user