mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-21 11:46:49 +01:00
Updated to 1.20
This commit is contained in:
parent
69e22636d1
commit
65bef4f7a8
@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id "fabric-loom" version "1.1-SNAPSHOT"
|
||||
id "fabric-loom" version "1.2-SNAPSHOT"
|
||||
id "maven-publish"
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user