Fix up load times

This commit is contained in:
libraryaddict 2021-06-20 00:35:46 +12:00
parent 6ab9e8f54f
commit d525d03383
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@
<asm.version>9.0</asm.version> <asm.version>9.0</asm.version>
<lombok.version>1.18.16</lombok.version> <lombok.version>1.18.16</lombok.version>
<protocollib.version>master-SNAPSHOT</protocollib.version> <protocollib.version>4.6.0</protocollib.version>
<spigot.version>[1.17,]</spigot.version> <spigot.version>[1.17,]</spigot.version>
<junit.version>4.13.1</junit.version> <junit.version>4.13.1</junit.version>
<paper-api.version>[1.16,]</paper-api.version> <paper-api.version>[1.16,]</paper-api.version>

View File

@ -252,7 +252,7 @@ public class ReflectionManager {
boardField = getCraftClass("CraftScoreboard").getDeclaredField("board"); boardField = getCraftClass("CraftScoreboard").getDeclaredField("board");
boardField.setAccessible(true); boardField.setAccessible(true);
scoreboardCrtieriaHealth = scoreboardCrtieriaHealth =
getNmsField("IScoreboardCriteria", NmsVersion.v1_17.isSupported() ? NmsVersion.v1_13.isSupported() ? "f" : "HEALTH" : "g").get(null); getNmsField("IScoreboardCriteria", NmsVersion.v1_17.isSupported() ? "f" : 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()) {