mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 13:11:09 +00:00
Fixed can set talent level to 16 bug (#408)
Level should be **lower than 16**
This commit is contained in:
parent
0d262e2d07
commit
b9e27828b8
@ -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 <n or e or q> <value>");
|
||||
return;
|
||||
}
|
||||
if (nextLevel > 16){
|
||||
if (nextLevel >= 16){
|
||||
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user