From 9dfef07bb5b473b4635531c4a6904bcdaf9ee32d Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 1 Aug 2018 08:21:02 +1000 Subject: [PATCH] SPIGOT-4204: Allow passing data to AreaEffectCloud particles By: md_5 --- .../bukkit/craftbukkit/entity/CraftAreaEffectCloud.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java index 555119a481..7e9239cf12 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java +++ b/paper-server/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