版本更新至 3.581

修复:EffLib 工具版本获取错误的问题。

ParticleEffect 作者估计做梦都没想到 1.9 版本之后不是 2.0,是 1.10
This commit is contained in:
坏黑 2018-02-19 16:00:02 +08:00
parent 4ee97ddff1
commit 09c063462f

View File

@ -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<String, EffLib> NAME_MAP = new HashMap<String, EffLib>(); private static final Map<String, EffLib> NAME_MAP = new HashMap<String, EffLib>();
private static final Map<Integer, EffLib> ID_MAP = new HashMap<Integer, EffLib>(); private static final Map<Integer, EffLib> ID_MAP = new HashMap<Integer, EffLib>();
@ -1426,7 +1426,7 @@ public enum EffLib {
return; return;
} }
try { try {
version = Integer.parseInt(Character.toString(PackageType.getServerVersion().charAt(3))); version = Integer.valueOf(PackageType.getServerVersion().split("_")[1]);
if (version > 7) { if (version > 7) {
enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle"); enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle");
} }