Updated to 1.20

This commit is contained in:
FlorianMichael 2023-06-07 20:03:35 +02:00
parent 69e22636d1
commit 65bef4f7a8
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
4 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
plugins {
id "fabric-loom" version "1.1-SNAPSHOT"
id "fabric-loom" version "1.2-SNAPSHOT"
id "maven-publish"
}

View File

@ -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

View File

@ -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)) {

View File

@ -53,7 +53,7 @@ public class ProtocolHack {
public final static AttributeKey<VersionEnum> FORCED_VERSION = AttributeKey.newInstance("viafabricplus-forced-version");
private final static Map<InetSocketAddress, VersionEnum> 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;
}