diff --git a/build.gradle b/build.gradle index 6edd8f7..56bd901 100644 --- a/build.gradle +++ b/build.gradle @@ -28,10 +28,10 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - modApi("me.shedaniel.cloth:cloth-config-fabric:10.0.96") { + modApi("me.shedaniel.cloth:cloth-config-fabric:11.0.99") { exclude(group: "net.fabricmc.fabric-api") } - modImplementation "com.terraformersmc:modmenu:6.2.2" + modImplementation "com.terraformersmc:modmenu:7.0.1" } processResources { diff --git a/gradle.properties b/gradle.properties index aa369db..6075c59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/versions.html -minecraft_version=1.19.4 -yarn_mappings=1.19.4+build.2 +minecraft_version=1.20.1 +yarn_mappings=1.20.1+build.8 loader_version=0.14.21 # Mod Properties - mod_version = 1.19.4-1.0.2 + mod_version = 1.20-1.0.2 maven_group = com.just_s archives_base_name = ctp-mod # Dependencies -fabric_version=0.83.0+1.19.4 +fabric_version=0.84.0+1.20.1 diff --git a/src/main/java/net/just_s/ctpmod/CTPMod.java b/src/main/java/net/just_s/ctpmod/CTPMod.java index b732388..223e749 100644 --- a/src/main/java/net/just_s/ctpmod/CTPMod.java +++ b/src/main/java/net/just_s/ctpmod/CTPMod.java @@ -70,7 +70,7 @@ public void cancelReconnect() { } public void connectToServer(ServerInfo targetInfo) { - ConnectScreen.connect(new MultiplayerScreen(new TitleScreen()), MC, ServerAddress.parse(targetInfo.address), targetInfo); + ConnectScreen.connect(new MultiplayerScreen(new TitleScreen()), MC, ServerAddress.parse(targetInfo.address), targetInfo, false); } public static Text generateFeedback(String message, Object... args) { diff --git a/src/main/java/net/just_s/ctpmod/util/ReconnectThread.java b/src/main/java/net/just_s/ctpmod/util/ReconnectThread.java index 46d2730..54b4f0c 100644 --- a/src/main/java/net/just_s/ctpmod/util/ReconnectThread.java +++ b/src/main/java/net/just_s/ctpmod/util/ReconnectThread.java @@ -4,12 +4,8 @@ import net.fabricmc.api.Environment; import net.just_s.ctpmod.CTPMod; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.network.ServerAddress; -import net.minecraft.client.network.ServerInfo; import org.apache.commons.lang3.ArrayUtils; -import java.io.IOException; -import java.net.Socket; import java.util.Arrays; import java.util.Collections; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index fafb504..004c1be 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -29,7 +29,7 @@ "depends": { "fabricloader": ">=0.11.3", "fabric": "*", - "minecraft": "~1.19", + "minecraft": ">=1.20", "java": ">=17" }, "suggests": {