Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit bfe765f

Browse files
committed
remove some shitcode
1 parent e6bde67 commit bfe765f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/main/java/com/balugaq/rsceditor/core/listeners/ItemEditListener.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ public static String placeholder(@Nonnull String message, @Nullable Player playe
109109
try {
110110
MachineTier tierEnum = MachineTier.valueOf(tier);
111111
MachineType typeEnum = MachineType.valueOf(type);
112-
if (tierEnum == null || typeEnum == null) {
113-
return "";
114-
}
115112

116113
return LoreBuilder.machine(tierEnum, typeEnum);
117114
} catch (IllegalArgumentException e) {
@@ -123,9 +120,6 @@ public static String placeholder(@Nonnull String message, @Nullable Player playe
123120
String radioactivity = matchResult.group(1);
124121
try {
125122
Radioactivity radioactivityEnum = Radioactivity.valueOf(radioactivity);
126-
if (radioactivityEnum == null) {
127-
return "";
128-
}
129123

130124
return LoreBuilder.radioactive(radioactivityEnum);
131125
} catch (IllegalArgumentException e) {

0 commit comments

Comments
 (0)