summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
author0x277F <0x277F@gmail.com>2014-12-05 13:43:15 -0700
committermd_5 <git@md-5.net>2014-12-18 21:20:51 +1100
commitdadb43af9262c69809ee05c5dae2642b3eaf8a43 (patch)
tree56d5694efc4eee742e1dc099f63870112e1626b0 /src/main/java
parent313bc5204cf949456ab3c1ecf208f7fb7d97865b (diff)
downloadcraftbukkit-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')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java2
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;
}