Skip to content

Commit

Permalink
版本更新至 3.581
Browse files Browse the repository at this point in the history
修复:EffLib 工具版本获取错误的问题。

ParticleEffect 作者估计做梦都没想到 1.9 版本之后不是 2.0,是 1.10
  • Loading branch information
Bkm016 committed Feb 19, 2018
1 parent aa7cdb3 commit f2fd7a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/src/me/skymc/taboolib/particle/EffLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit f2fd7a8

Please sign in to comment.