Skip to content

Commit f2fd7a8

Browse files
committed
版本更新至 3.581
修复:EffLib 工具版本获取错误的问题。 ParticleEffect 作者估计做梦都没想到 1.9 版本之后不是 2.0,是 1.10
1 parent aa7cdb3 commit f2fd7a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/src/me/skymc/taboolib/particle/EffLib.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -389,22 +389,22 @@ public enum EffLib {
389389
/**
390390
* ÁúÏ¢
391391
*/
392-
DRAGON_BREATH("dragonbreath", 42, 9, new ParticleProperty[0]),
392+
DRAGON_BREATH("dragonbreath", 42, 9),
393393

394394
/**
395395
* Ä©µØÖò
396396
*/
397-
END_ROD("endrod", 43, 9, new ParticleProperty[0]),
397+
END_ROD("endrod", 43, 9),
398398

399399
/**
400400
* É˺¦
401401
*/
402-
DAMAGE_INDICATOR("damageIndicator", 44, 9, new ParticleProperty[0]),
402+
DAMAGE_INDICATOR("damageIndicator", 44, 9),
403403

404404
/**
405405
* »Ó¿³
406406
*/
407-
SWEEP_ATTACK("sweepAttack", 45, 9, new ParticleProperty[0]);
407+
SWEEP_ATTACK("sweepAttack", 45, 9);
408408

409409
private static final Map<String, EffLib> NAME_MAP = new HashMap<String, EffLib>();
410410
private static final Map<Integer, EffLib> ID_MAP = new HashMap<Integer, EffLib>();
@@ -1426,7 +1426,7 @@ public static void initialize() throws VersionIncompatibleException {
14261426
return;
14271427
}
14281428
try {
1429-
version = Integer.parseInt(Character.toString(PackageType.getServerVersion().charAt(3)));
1429+
version = Integer.valueOf(PackageType.getServerVersion().split("_")[1]);
14301430
if (version > 7) {
14311431
enumParticle = PackageType.MINECRAFT_SERVER.getClass("EnumParticle");
14321432
}

0 commit comments

Comments
 (0)