Use value from new potion effect particle visibility API.

By: 0x277F <0x277F@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2014-12-05 13:43:15 -07:00
parent 13e3cbe255
commit 6ef454742b

View file

@ -259,7 +259,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
}
removePotionEffect(effect.getType());
}
getHandle().addEffect(new MobEffect(effect.getType().getId(), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), true));
getHandle().addEffect(new MobEffect(effect.getType().getId(), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles()));
return true;
}