diff options
author | 0x277F <0x277F@gmail.com> | 2014-12-05 13:43:15 -0700 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-18 21:20:51 +1100 |
commit | dadb43af9262c69809ee05c5dae2642b3eaf8a43 (patch) | |
tree | 56d5694efc4eee742e1dc099f63870112e1626b0 /src/main/java/org/bukkit | |
parent | 313bc5204cf949456ab3c1ecf208f7fb7d97865b (diff) | |
download | craftbukkit-dadb43af9262c69809ee05c5dae2642b3eaf8a43.tar craftbukkit-dadb43af9262c69809ee05c5dae2642b3eaf8a43.tar.gz craftbukkit-dadb43af9262c69809ee05c5dae2642b3eaf8a43.tar.lz craftbukkit-dadb43af9262c69809ee05c5dae2642b3eaf8a43.tar.xz craftbukkit-dadb43af9262c69809ee05c5dae2642b3eaf8a43.zip |
Use value from new potion effect particle visibility API.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index e31fcc17..8cbd3e1d 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -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; } |