Update to 1.21

This commit is contained in:
Bruno Rybársky 2024-06-14 14:43:03 +02:00
parent 2c9f3d0a6e
commit ec7a70a3cf
2 changed files with 10 additions and 9 deletions

@ -1,19 +1,20 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.10
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.15.11
# Fabric API
fabric_version=0.100.1+1.21
# Mod Properties
mod_version = 0.4
mod_version = 0.5
maven_group = systems.brn
archives_base_name = chatencryptor
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.97.8+1.20.6
yacl_version=3.4.2+1.20.5-fabric
yacl_version=3.5.0+1.21-fabric
modmenu_version=10.0.0-beta.1

@ -22,7 +22,7 @@ import java.util.Base64;
public class Config {
public static ConfigClassHandler<Config> HANDLER = ConfigClassHandler.createBuilder(Config.class)
.id(new Identifier("securechat", "securechat_config"))
.id(Identifier.of("securechat", "securechat_config"))
.serializer(config -> GsonConfigSerializerBuilder.create(config)
.setPath(FabricLoader.getInstance().getConfigDir().resolve("securechat.json"))
.appendGsonBuilder(GsonBuilder::setPrettyPrinting) // not needed, pretty print by default