From 076c96370415446f2b8c04bbfc058ffa6715492a Mon Sep 17 00:00:00 2001 From: mcchampions <1309635304@qq.com> Date: Sat, 5 Oct 2024 11:44:29 +0800 Subject: [PATCH] Update EnumSetting.java --- .../slimefun4/api/items/settings/EnumSetting.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/settings/EnumSetting.java b/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/settings/EnumSetting.java index eca2c3c586..608ecf0e5b 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/settings/EnumSetting.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/api/items/settings/EnumSetting.java @@ -55,16 +55,14 @@ public T getAsEnumConstant() { @Override public boolean validateInput(String input) { - if (!super.validateInput(input)) { - return false; - } else { + if (super.validateInput(input)) { for (Enum value : getAllowedValues()) { if (value.name().equals(input)) { return true; } } - return false; } + return false; } }