mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 03:07:34 +00:00
Removed duplicate enums
This commit is contained in:
1 parent
5332774c3d
commit
acae8d84d0
1 file changed
-12
-12
@@ -113,18 +113,6 @@ public class JavaAutocompleteProvider implements AutocompleteProvider {
|
||||
}
|
||||
}
|
||||
|
||||
// Add enum constants if it's an enum
|
||||
if (clazz.isEnum()) {
|
||||
for (Object constant : clazz.getEnumConstants()) {
|
||||
String constantName = constant.toString();
|
||||
items.add(new AutocompleteItem.Builder()
|
||||
.name(constantName)
|
||||
.insertText(constantName)
|
||||
.kind(AutocompleteItem.Kind.ENUM_CONSTANT)
|
||||
.typeLabel(receiverType.getSimpleName())
|
||||
.build());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user