Fix filter bug for new category system
This commit is contained in:
parent
bd747c6302
commit
e3db8db80b
@ -161,7 +161,7 @@ public class HelpCommand extends Command {
|
|||||||
|
|
||||||
public boolean isCategory(String input) {
|
public boolean isCategory(String input) {
|
||||||
for (Command cmd : guthix.listCommands()) {
|
for (Command cmd : guthix.listCommands()) {
|
||||||
String category = cmd.category().getCategory();
|
String category = cmd.category().getCategory().toLowerCase();
|
||||||
if (category.toLowerCase().equals(input.toLowerCase())) {
|
if (category.toLowerCase().equals(input.toLowerCase())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user