refactor: very small change in BotVisibilityCommand that caught my eye

This commit is contained in:
ChomeNS
2025-04-06 14:33:30 +07:00
parent af67c228ce
commit 1c7cd3038c

View File

@@ -29,8 +29,7 @@ public class BotVisibilityCommand extends Command {
final String action = context.getString(false, false, false);
if (action.isEmpty()) {
final boolean visibility = bot.selfCare.visible;
bot.selfCare.visible = !visibility;
bot.selfCare.visible = !bot.selfCare.visible;
final NamedTextColor greenOrGold = bot.selfCare.visible ? NamedTextColor.GREEN : NamedTextColor.GOLD;