Skip to content

Commit

Permalink
Fix Feature Toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Dec 2, 2024
1 parent 06ebc28 commit 370a669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ author = masa
mod_file_name = tweakeroo-fabric

# Current mod version
mod_version = 0.22.1
mod_version = 0.22.2

# Required malilib version
malilib_version = a795f3d875
malilib_version = 374820e625

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21.3
Expand Down
11 changes: 4 additions & 7 deletions src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,15 @@ public String getConfigGuiDisplayName()
name = GuiBase.TXT_GOLD + name + GuiBase.TXT_RST;
}

System.out.printf("FeatureToggle#getConfigGuiDisplayName(): translatedName [%s] // test [%s]\n", this.translatedName, name);
//System.out.printf("FeatureToggle#getConfigGuiDisplayName(): translatedName [%s] // test [%s]\n", this.translatedName, name);
return name;
}

@Override
public String getPrettyName()
{
String test = StringUtils.getTranslatedOrFallback(this.prettyName,
!this.prettyName.isEmpty() ? this.prettyName : StringUtils.splitCamelCase(this.name.substring(5)));

System.out.printf("FeatureToggle#getPrettyName(): prettyName [%s] // test [%s]\n", this.prettyName, test);
return test;
return StringUtils.getTranslatedOrFallback(this.prettyName,
!this.prettyName.isEmpty() ? this.prettyName : StringUtils.splitCamelCase(this.name.substring(5)));
}

@Override
Expand Down Expand Up @@ -314,7 +311,7 @@ public String getComment()
return comment + "\n" + StringUtils.translate("tweakeroo.label.config_comment.single_player_only");
}

System.out.printf("FeatureToggle#getComment(): comment [%s] // test [%s]\n", this.comment, comment);
//System.out.printf("FeatureToggle#getComment(): comment [%s] // test [%s]\n", this.comment, comment);
return comment;
}

Expand Down

0 comments on commit 370a669

Please sign in to comment.