From b9e27828b87d7a7c52861238aab018594a58a394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= Date: Sun, 1 May 2022 22:42:02 +0800 Subject: [PATCH] Fixed can set talent level to 16 bug (#408) Level should be **lower than 16** --- .../java/emu/grasscutter/command/commands/TalentCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/commands/TalentCommand.java b/src/main/java/emu/grasscutter/command/commands/TalentCommand.java index f0e779700..32e2f9ee8 100644 --- a/src/main/java/emu/grasscutter/command/commands/TalentCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/TalentCommand.java @@ -53,7 +53,7 @@ public final class TalentCommand implements CommandHandler { CommandHandler.sendMessage(sender, "To get talent ID: /talent getid"); return; } - if (nextLevel > 16){ + if (nextLevel >= 16){ CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16"); return; } @@ -117,7 +117,7 @@ public final class TalentCommand implements CommandHandler { CommandHandler.sendMessage(sender, "To set talent level: /talent "); return; } - if (nextLevel > 16){ + if (nextLevel >= 16){ CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16"); return; }