From 126cda05e53322f53803b393945a6770db67bf0d Mon Sep 17 00:00:00 2001 From: Diego Arias Date: Wed, 3 Apr 2019 16:39:34 -0300 Subject: [PATCH] Fix default value issue when using PACKETS (#1192) --- .../factions/util/particle/PacketParticleProvider.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/util/particle/PacketParticleProvider.java b/src/main/java/com/massivecraft/factions/util/particle/PacketParticleProvider.java index 7099d52a..0c04e167 100644 --- a/src/main/java/com/massivecraft/factions/util/particle/PacketParticleProvider.java +++ b/src/main/java/com/massivecraft/factions/util/particle/PacketParticleProvider.java @@ -47,6 +47,12 @@ public class PacketParticleProvider implements ParticleProvider @Override public ParticleEffect effectFromString(String string) { + for (ParticleEffect effect : ParticleEffect.values()) { + if (effect.name().equalsIgnoreCase(string)) { + return effect; + } + } + // If none of the Enum name matches fallback to the other names return ParticleEffect.fromName(string); }