mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 19:05:09 +00:00
Fixed can set talent level to 16 bug (#408)
Level should be **lower than 16**
This commit is contained in:
parent
d484ba7ed6
commit
ec09bc28f2
@ -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