From a3b7e3433a01a5266c774912d71cb8451dcf7daf Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 1 Aug 2018 08:21:02 +1000 Subject: SPIGOT-4204: Allow passing data to AreaEffectCloud particles --- .../java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java index 555119a4..7e9239cf 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java @@ -120,7 +120,12 @@ public class CraftAreaEffectCloud extends CraftEntity implements AreaEffectCloud @Override public void setParticle(Particle particle) { - getHandle().setParticle(CraftParticle.toNMS(particle)); + setParticle(particle, null); + } + + @Override + public void setParticle(Particle particle, T data) { + getHandle().setParticle(CraftParticle.toNMS(particle, data)); } @Override -- cgit v1.2.3