From 6922bcd9e82d28a37a2001f53e31afe3d9c1d239 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 3 Feb 2021 22:59:33 +1300 Subject: [PATCH] Fix 1.12 --- .../disguise/utilities/reflection/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index aa4d2f9b..9f617bbd 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -185,7 +185,7 @@ public class ReflectionManager { genericDamage = getNmsField("DamageSource", "GENERIC").get(null); boardField = getCraftClass("scoreboard.CraftScoreboard").getDeclaredField("board"); 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); if (!NmsVersion.v1_13.isSupported()) {