Skip to content

Commit

Permalink
mc1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Plastoid501 committed Aug 8, 2024
1 parent f2e7845 commit fc27d12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main/java/net/plastoid501/movement/config/Configs.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/plastoid501/movement/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public static void updateConfigs() {
ModConfig config = FileUtil.readConfig();
if (config != null) {
if (config.getToggles() == null) {
saveConfig(Configs.config);
return;
}

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"movement-in-gui.mixins.json"
],
"depends": {
"minecraft": ">=1.21"
"minecraft": ">=1.21 <=1.21.1"
},
"suggests": {
"another-mod": "*"
Expand Down

0 comments on commit fc27d12

Please sign in to comment.