mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 15:39:37 +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");
|
CommandHandler.sendMessage(sender, "To get talent ID: /talent getid");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (nextLevel > 16){
|
if (nextLevel >= 16){
|
||||||
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
|
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
|
||||||
return;
|
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>");
|
CommandHandler.sendMessage(sender, "To set talent level: /talent <n or e or q> <value>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (nextLevel > 16){
|
if (nextLevel >= 16){
|
||||||
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
|
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user