diff --git a/src/main/src/me/skymc/taboolib/particle/EffLib.java b/src/main/src/me/skymc/taboolib/particle/EffLib.java index 4bc860642..53e374911 100644 --- a/src/main/src/me/skymc/taboolib/particle/EffLib.java +++ b/src/main/src/me/skymc/taboolib/particle/EffLib.java @@ -389,22 +389,22 @@ public enum EffLib { /** * ÁúÏ¢ */ - DRAGON_BREATH("dragonbreath", 42, 9, new ParticleProperty[0]), + DRAGON_BREATH("dragonbreath", 42, 9), /** * Ä©µØÖò */ - END_ROD("endrod", 43, 9, new ParticleProperty[0]), + END_ROD("endrod", 43, 9), /** * É˺¦ */ - DAMAGE_INDICATOR("damageIndicator", 44, 9, new ParticleProperty[0]), + DAMAGE_INDICATOR("damageIndicator", 44, 9), /** * »Ó¿³ */ - SWEEP_ATTACK("sweepAttack", 45, 9, new ParticleProperty[0]); + SWEEP_ATTACK("sweepAttack", 45, 9); private static final Map NAME_MAP = new HashMap(); private static final Map ID_MAP = new HashMap(); @@ -1426,7 +1426,7 @@ public static void initialize() throws VersionIncompatibleException { return; } try { - version = Integer.parseInt(Character.toString(PackageType.getServerVersion().charAt(3))); + version = Integer.valueOf(PackageType.getServerVersion().split("_")[1]); if (version > 7) { enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle"); }