From fc27d124032bc202384a367334ab281de4b13b09 Mon Sep 17 00:00:00 2001 From: plastoid501 Date: Fri, 9 Aug 2024 00:20:40 +0900 Subject: [PATCH] mc1.21.1 --- gradle.properties | 8 ++++---- .../java/net/plastoid501/movement/config/Configs.java | 2 +- src/main/java/net/plastoid501/movement/util/FileUtil.java | 2 ++ src/main/resources/fabric.mod.json | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index c67ec35..ed1e16a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,15 +4,15 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.21 -yarn_mappings=1.21+build.9 +minecraft_version=1.21.1 +yarn_mappings=1.21.1+build.1 loader_version=0.15.11 # Mod Properties mod_version=1.0.2 maven_group=net.plastoid501.movement -archives_base_name=movement-in-gui-mc1.21 +archives_base_name=movement-in-gui-mc1.21.1 # Dependencies -fabric_version=0.100.7+1.21 +fabric_version=0.102.0+1.21.1 modmenu_version=11.0.1 \ No newline at end of file diff --git a/src/main/java/net/plastoid501/movement/config/Configs.java b/src/main/java/net/plastoid501/movement/config/Configs.java index ba7fd6c..16406fd 100644 --- a/src/main/java/net/plastoid501/movement/config/Configs.java +++ b/src/main/java/net/plastoid501/movement/config/Configs.java @@ -10,7 +10,7 @@ public class Configs { public static ToggleConfig modEnable = new ToggleConfig("modEnable", "If true, this mod is enable", true); public static ToggleConfig inCreative = new ToggleConfig("inCreative", "If true, this mod is enable when creative mode.", true); - public static ToggleConfig isAnvil = new ToggleConfig("inCreative", "If true, this mod is enable when open anvil screen.", true); + public static ToggleConfig isAnvil = new ToggleConfig("isAnvil", "If true, this mod is enable when open anvil screen.", true); public static ModConfig config; diff --git a/src/main/java/net/plastoid501/movement/util/FileUtil.java b/src/main/java/net/plastoid501/movement/util/FileUtil.java index d2621e0..8a8e3f5 100644 --- a/src/main/java/net/plastoid501/movement/util/FileUtil.java +++ b/src/main/java/net/plastoid501/movement/util/FileUtil.java @@ -102,6 +102,7 @@ public static void updateConfigs() { ModConfig config = FileUtil.readConfig(); if (config != null) { if (config.getToggles() == null) { + saveConfig(Configs.config); return; } @@ -132,6 +133,7 @@ public static void updateConfigs() { Configs.isAnvil = new ToggleConfig(Configs.isAnvil.getId(), Configs.isAnvil.getNarrator(), toggleConfig.isEnable()); if (flag) { + saveConfig(config); return; } Configs.config = config; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index eeef556..796a46c 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -26,7 +26,7 @@ "movement-in-gui.mixins.json" ], "depends": { - "minecraft": ">=1.21" + "minecraft": ">=1.21 <=1.21.1" }, "suggests": { "another-mod": "*"