mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 17:40:15 +08:00
Bug fixes (#2314)
* Match resources names * Fix loading with no skill * Stop overriding common command alias * Fix discord link in version check popup * Forgot to add rotation fix * Remove unnecessary set
This commit is contained in:
committed by
GitHub
Unverified
parent
01766a0303
commit
f54432a89a
@@ -157,6 +157,13 @@ public class AvatarStorage extends BasePlayerManager implements Iterable<Avatar>
|
||||
// Add to avatar storage
|
||||
this.avatars.put(avatar.getAvatarId(), avatar);
|
||||
this.avatarsGuid.put(avatar.getGuid(), avatar);
|
||||
|
||||
// Set main character skill depot data, fixes loading with no element every login
|
||||
if ((avatar.getAvatarId() == 10000007) || (avatar.getAvatarId() == 10000005)) {
|
||||
avatar.setSkillDepot(skillDepot);
|
||||
avatar.setSkillDepotData(skillDepot);
|
||||
avatar.save();
|
||||
}
|
||||
}
|
||||
|
||||
this.setLoaded(true);
|
||||
|
||||
Reference in New Issue
Block a user