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
23f0406b
Commit
23f0406b
authored
Apr 24, 2022
by
Yazawazi
Committed by
GitHub
Apr 24, 2022
Browse files
command fix too
parent
5c0c4fe6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/SetFetterLevelCommand.java
View file @
23f0406b
...
@@ -35,7 +35,9 @@ public final class SetFetterLevelCommand implements CommandHandler {
...
@@ -35,7 +35,9 @@ public final class SetFetterLevelCommand implements CommandHandler {
GenshinAvatar
avatar
=
sender
.
getTeamManager
().
getCurrentAvatarEntity
().
getAvatar
();
GenshinAvatar
avatar
=
sender
.
getTeamManager
().
getCurrentAvatarEntity
().
getAvatar
();
avatar
.
setFetterLevel
(
fetterLevel
);
avatar
.
setFetterLevel
(
fetterLevel
);
if
(
fetterLevel
!=
10
)
{
avatar
.
setFetterExp
(
GenshinData
.
getAvatarFetterLevelDataMap
().
get
(
fetterLevel
).
getExp
());
avatar
.
setFetterExp
(
GenshinData
.
getAvatarFetterLevelDataMap
().
get
(
fetterLevel
).
getExp
());
}
avatar
.
save
();
avatar
.
save
();
sender
.
sendPacket
(
new
PacketAvatarFetterDataNotify
(
avatar
));
sender
.
sendPacket
(
new
PacketAvatarFetterDataNotify
(
avatar
));
...
...
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