Update to 1.20.6

This commit is contained in:
Bruno Rybársky 2024-05-05 08:43:49 +02:00
parent 5918002c97
commit 963640810d
4 changed files with 14 additions and 12 deletions

@ -31,7 +31,7 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway. // Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" 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}" modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
} }

@ -3,17 +3,17 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://modmuss50.me/fabric.html # check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.4 minecraft_version=1.20.6
yarn_mappings=1.20.4+build.3 yarn_mappings=1.20.6+build.1
loader_version=0.15.9 loader_version=0.15.10
# Mod Properties # Mod Properties
mod_version = 0.2 mod_version = 0.3
maven_group = systems.brn maven_group = systems.brn
archives_base_name = chatencryptor archives_base_name = chatencryptor
# Dependencies # Dependencies
# check this on https://modmuss50.me/fabric.html # check this on https://modmuss50.me/fabric.html
fabric_version=0.96.11+1.20.4 fabric_version=0.97.8+1.20.6
yacl_version=3.4.1+1.20.4 yacl_version=3.4.2+1.20.5-fabric
modmenu_version=9.2.0-beta.2 modmenu_version=10.0.0-beta.1

@ -1,6 +1,7 @@
package systems.brn.chatencryptor; package systems.brn.chatencryptor;
import com.mojang.authlib.GameProfile; import com.mojang.authlib.GameProfile;
import com.mojang.brigadier.Message;
import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents;
import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents; import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents;
@ -45,6 +46,7 @@ public class SecureChat implements ClientModInitializer {
} }
catch (IllegalBlockSizeException | BadPaddingException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidAlgorithmParameterException | catch (IllegalBlockSizeException | BadPaddingException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidAlgorithmParameterException |
InvalidKeyException e){ InvalidKeyException e){
MinecraftClient.getInstance().inGameHud.getChatHud().addMessage(Text.of((Message) e));
return true; return true;
} }
} }

@ -24,9 +24,9 @@
}, },
"depends": { "depends": {
"fabricloader": ">=${loader_version}", "fabricloader": ">=${loader_version}",
"fabric": "*", "fabric": "0.97.8+1.20.6",
"minecraft": "${minecraft_version}", "minecraft": ">=${minecraft_version}",
"yet_another_config_lib_v3": "3.3.2+1.20.4", "yet_another_config_lib_v3": "3.4.2+1.20.5-fabric",
"modmenu": "9.1.0-beta.1" "modmenu": "10.0.0-beta.1"
} }
} }