diff --git a/build.gradle b/build.gradle index 715cbefb..e7012f8c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id "fabric-loom" version "1.1-SNAPSHOT" + id "fabric-loom" version "1.2-SNAPSHOT" id "maven-publish" } diff --git a/gradle.properties b/gradle.properties index 98f84426..2442fdb1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,8 +3,8 @@ org.gradle.jvmargs=-Xmx8G org.gradle.parallel=true # minecraft and fabric -minecraft_version=1.20-rc1 -yarn_mappings=1.20-rc1+build.2 +minecraft_version=1.20 +yarn_mappings=1.20+build.1 loader_version=0.14.21 fabric_api_version=0.83.0+1.20 diff --git a/src/main/java/de/florianmichael/viafabricplus/base/FileSaver.java b/src/main/java/de/florianmichael/viafabricplus/base/FileSaver.java index df9504b2..03ad36d4 100644 --- a/src/main/java/de/florianmichael/viafabricplus/base/FileSaver.java +++ b/src/main/java/de/florianmichael/viafabricplus/base/FileSaver.java @@ -46,8 +46,7 @@ public abstract class FileSaver { file.delete(); try { file.createNewFile(); - } catch (IOException e) { - e.printStackTrace(); + } catch (IOException ignored) { } try (final FileWriter fw = new FileWriter(file)) { diff --git a/src/main/java/de/florianmichael/viafabricplus/protocolhack/ProtocolHack.java b/src/main/java/de/florianmichael/viafabricplus/protocolhack/ProtocolHack.java index 43d96717..21bfdb4a 100644 --- a/src/main/java/de/florianmichael/viafabricplus/protocolhack/ProtocolHack.java +++ b/src/main/java/de/florianmichael/viafabricplus/protocolhack/ProtocolHack.java @@ -53,7 +53,7 @@ public class ProtocolHack { public final static AttributeKey FORCED_VERSION = AttributeKey.newInstance("viafabricplus-forced-version"); private final static Map forcedVersions = new HashMap<>(); - public static VersionEnum targetVersion = VersionEnum.r1_19_4; + public static VersionEnum targetVersion = VersionEnum.r1_20; public static VersionEnum getTargetVersion() { if (MinecraftClient.getInstance() == null || MinecraftClient.getInstance().getNetworkHandler() == null) { @@ -75,7 +75,7 @@ public class ProtocolHack { return channel.attr(FORCED_VERSION).get(); } - if (MinecraftClient.getInstance() == null || MinecraftClient.getInstance().isInSingleplayer()) return VersionEnum.r1_19_4; + if (MinecraftClient.getInstance() == null || MinecraftClient.getInstance().isInSingleplayer()) return VersionEnum.r1_20; return targetVersion; }