Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
b9e27828
Commit
b9e27828
authored
May 01, 2022
by
筱傑
Committed by
GitHub
May 01, 2022
Browse files
Fixed can set talent level to 16 bug (#408)
Level should be **lower than 16**
parent
0d262e2d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/TalentCommand.java
View file @
b9e27828
...
@@ -53,7 +53,7 @@ public final class TalentCommand implements CommandHandler {
...
@@ -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 {
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment