Fix 1.12
This commit is contained in:
parent
60ad887fef
commit
6922bcd9e8
@ -185,7 +185,7 @@ public class ReflectionManager {
|
|||||||
genericDamage = getNmsField("DamageSource", "GENERIC").get(null);
|
genericDamage = getNmsField("DamageSource", "GENERIC").get(null);
|
||||||
boardField = getCraftClass("scoreboard.CraftScoreboard").getDeclaredField("board");
|
boardField = getCraftClass("scoreboard.CraftScoreboard").getDeclaredField("board");
|
||||||
boardField.setAccessible(true);
|
boardField.setAccessible(true);
|
||||||
scoreboardCrtieriaHealth = getNmsField("IScoreboardCriteria", "HEALTH").get(null);
|
scoreboardCrtieriaHealth = getNmsField("IScoreboardCriteria", NmsVersion.v1_13.isSupported() ? "HEALTH" : "g").get(null);
|
||||||
setScore = getNmsMethod("ScoreboardScore", "setScore", int.class);
|
setScore = getNmsMethod("ScoreboardScore", "setScore", int.class);
|
||||||
|
|
||||||
if (!NmsVersion.v1_13.isSupported()) {
|
if (!NmsVersion.v1_13.isSupported()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user