From 9141b68782e913174e34180cba4b8a5ed9151178 Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Mon, 2 Dec 2024 13:14:03 -0500 Subject: [PATCH] Fix Feature Toggle --- .../fi/dy/masa/tweakeroo/config/FeatureToggle.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java b/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java index edfd4ab91..639d45108 100644 --- a/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java +++ b/src/main/java/fi/dy/masa/tweakeroo/config/FeatureToggle.java @@ -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 @@ -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; }