mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-22 16:31:55 +01:00
Fix getActivePotionEffects ignoring the particles flag
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
06c94503e9
commit
131fe319af
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue