From f2fd7a869b2cbc853a4d072fa84e727f28ec08c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Mon, 19 Feb 2018 16:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E8=87=B3?= =?UTF-8?q?=203.581?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复:EffLib 工具版本获取错误的问题。 ParticleEffect 作者估计做梦都没想到 1.9 版本之后不是 2.0,是 1.10 --- src/main/src/me/skymc/taboolib/particle/EffLib.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"); }