From 69151f0855ef6ec3d6f3add82519f05203bf1d9c Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 22 Feb 2017 00:01:39 -0500 Subject: [PATCH] Forgot to actually add the funfetti --- .../com/gmail/nossr50/util/skills/ParticleEffectUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java index 8979a3048..24f860296 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java @@ -14,7 +14,9 @@ import org.bukkit.entity.Firework; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.inventory.meta.FireworkMeta; +import org.bukkit.metadata.FixedMetadataValue; +import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; public final class ParticleEffectUtils { @@ -105,6 +107,7 @@ public final class ParticleEffectUtils { location.setPitch(-90); Firework firework = (Firework) player.getWorld().spawnEntity(location, EntityType.FIREWORK); + firework.setMetadata(mcMMO.funfettiMetadataKey, new FixedMetadataValue(mcMMO.p, null)); FireworkMeta fireworkMeta = firework.getFireworkMeta(); FireworkEffect effect = FireworkEffect.builder().flicker(false).withColor(color).with((Config.getInstance().getLargeFireworks() ? Type.BALL_LARGE : Type.BALL)).trail(true).build(); fireworkMeta.addEffect(effect);