版本更新至 3.581

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

ParticleEffect 作者估计做梦都没想到 1.9 版本之后不是 2.0,是 1.10
master
坏黑 2018-02-19 16:00:02 +08:00
parent 4ee97ddff1
commit 09c063462f
1 changed files with 5 additions and 5 deletions

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<Integer, EffLib> ID_MAP = new HashMap<Integer, EffLib>();
@ -1426,7 +1426,7 @@ public enum EffLib {
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");
}