mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-14 04:46:50 +01:00
Fix default value issue when using PACKETS (#1192)
This commit is contained in:
parent
1f1ef59637
commit
126cda05e5
@ -47,6 +47,12 @@ public class PacketParticleProvider implements ParticleProvider<ParticleEffect>
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ParticleEffect effectFromString(String string) {
|
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);
|
return ParticleEffect.fromName(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user