Use value from new potion effect particle visibility API.

This commit is contained in:
0x277F 2014-12-05 13:43:15 -07:00 committed by md_5
parent 313bc5204c
commit dadb43af92

View file

@ -259,7 +259,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
} }
removePotionEffect(effect.getType()); 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; return true;
} }