aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/dev/isxander/yacl/gui/controllers/EnumController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/EnumController.java b/src/main/java/dev/isxander/yacl/gui/controllers/EnumController.java
index 57c6c18..9989981 100644
--- a/src/main/java/dev/isxander/yacl/gui/controllers/EnumController.java
+++ b/src/main/java/dev/isxander/yacl/gui/controllers/EnumController.java
@@ -32,14 +32,14 @@ public class EnumController<T extends Enum<T>> implements Controller<T> {
return nameableEnum.getDisplayName();
if (value instanceof TranslatableOption translatableOption)
return translatableOption.getText();
- return Text.of(value.name());
+ return Text.of(value.toString());
};
}
/**
* Constructs a cycling enum controller with a default value formatter and all values being available.
* The default value formatter first searches if the
- * enum is a {@link NameableEnum} else, just use {@link Enum#name()}
+ * enum is a {@link NameableEnum} else, just uses {@link Enum#toString()}
*
* @param option bound option
*/