From 963640810dfd83c87b44a338e5f5d9ee20611f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 5 May 2024 08:43:49 +0200 Subject: [PATCH] Update to 1.20.6 --- build.gradle | 2 +- gradle.properties | 14 +++++++------- .../java/systems/brn/chatencryptor/SecureChat.java | 2 ++ src/main/resources/fabric.mod.json | 8 ++++---- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 59c6de6..07f4e05 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,7 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - modImplementation "dev.isxander.yacl:yet-another-config-lib-fabric:${project.yacl_version}" + modImplementation "dev.isxander:yet-another-config-lib:${project.yacl_version}" modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}" } diff --git a/gradle.properties b/gradle.properties index d8e21bc..0b0a4fd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,17 +3,17 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html - minecraft_version=1.20.4 - yarn_mappings=1.20.4+build.3 - loader_version=0.15.9 + minecraft_version=1.20.6 + yarn_mappings=1.20.6+build.1 + loader_version=0.15.10 # Mod Properties - mod_version = 0.2 + mod_version = 0.3 maven_group = systems.brn archives_base_name = chatencryptor # Dependencies # check this on https://modmuss50.me/fabric.html - fabric_version=0.96.11+1.20.4 - yacl_version=3.4.1+1.20.4 - modmenu_version=9.2.0-beta.2 + fabric_version=0.97.8+1.20.6 + yacl_version=3.4.2+1.20.5-fabric + modmenu_version=10.0.0-beta.1 diff --git a/src/main/java/systems/brn/chatencryptor/SecureChat.java b/src/main/java/systems/brn/chatencryptor/SecureChat.java index ef3e55d..e266170 100644 --- a/src/main/java/systems/brn/chatencryptor/SecureChat.java +++ b/src/main/java/systems/brn/chatencryptor/SecureChat.java @@ -1,6 +1,7 @@ package systems.brn.chatencryptor; import com.mojang.authlib.GameProfile; +import com.mojang.brigadier.Message; import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents; import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents; @@ -45,6 +46,7 @@ public class SecureChat implements ClientModInitializer { } catch (IllegalBlockSizeException | BadPaddingException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidAlgorithmParameterException | InvalidKeyException e){ + MinecraftClient.getInstance().inGameHud.getChatHud().addMessage(Text.of((Message) e)); return true; } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index c9e198b..e5c31e2 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -24,9 +24,9 @@ }, "depends": { "fabricloader": ">=${loader_version}", - "fabric": "*", - "minecraft": "${minecraft_version}", - "yet_another_config_lib_v3": "3.3.2+1.20.4", - "modmenu": "9.1.0-beta.1" + "fabric": "0.97.8+1.20.6", + "minecraft": ">=${minecraft_version}", + "yet_another_config_lib_v3": "3.4.2+1.20.5-fabric", + "modmenu": "10.0.0-beta.1" } }