mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 00:11:31 +00:00
command fix too
This commit is contained in:
parent
5ed49a27e0
commit
a743155039
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user