Support 1.21. (#297)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2024-07-02 22:43:35 +08:00
1 parent cd1922844c
commit 64490f1d18
90 files changed
+733 -375

No files matched your search

@@ -40,7 +40,7 @@ public class MinecraftUtil {
}
//version.json can be found in 1.14+
URL versionFile = MinecraftUtil.class.getResource("/version.json");
URL versionFile = ClassLoader.getSystemClassLoader().getResource("version.json");
if (versionFile != null) {
try (
InputStream is = versionFile.openStream();