From 3d00abcc91609c4e67ea84f4142e783a02385160 Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Sun, 9 Jun 2024 10:00:07 -0300 Subject: [PATCH] perf: we can just equalsIgnoreCase --- .../command/commands/TrialAvatarActivityCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/command/commands/TrialAvatarActivityCommand.java b/src/main/java/emu/grasscutter/command/commands/TrialAvatarActivityCommand.java index d375f490d..46382bf9d 100644 --- a/src/main/java/emu/grasscutter/command/commands/TrialAvatarActivityCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/TrialAvatarActivityCommand.java @@ -131,7 +131,7 @@ public final class TrialAvatarActivityCommand implements CommandHandler { translate( sender, "commands.trialAvatarActivity.success_reward", Integer.parseInt(param))); } else { - if (!param.toLowerCase().equals("all")) { + if (!param.equalsIgnoreCase("all")) { CommandHandler.sendMessage( sender, translate(sender, "commands.trialAvatarActivity.invalid_param")); return;