mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Fix getActivePotionEffects ignoring the particles flag
This commit is contained in:
parent
294d07dcc0
commit
7f52bd6c95
@ -326,7 +326,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
if (!(raw instanceof MobEffect))
|
||||
continue;
|
||||
MobEffect handle = (MobEffect) raw;
|
||||
effects.add(new PotionEffect(PotionEffectType.getById(handle.getEffectId()), handle.getDuration(), handle.getAmplifier(), handle.isAmbient()));
|
||||
effects.add(new PotionEffect(PotionEffectType.getById(handle.getEffectId()), handle.getDuration(), handle.getAmplifier(), handle.isAmbient(), handle.isShowParticles()));
|
||||
}
|
||||
return effects;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user