From 65bef4f7a8135a1567fa90b1e075993c1d25a9f0 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 7 Jun 2023 20:03:35 +0200 Subject: [PATCH] Updated to 1.20 --- build.gradle | 2 +- gradle.properties | 4 ++-- .../java/de/florianmichael/viafabricplus/base/FileSaver.java | 3 +-- .../viafabricplus/protocolhack/ProtocolHack.java | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 715cbefb3..e7012f8ca 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 98f844267..2442fdb1c 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 df9504b29..03ad36d46 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 void init() { 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 43d96717d..21bfdb4a4 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 static VersionEnum getTargetVersion(final Channel channel) { 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; }