mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Fix showcase not updating when new characters/discs are added
This commit is contained in:
@@ -152,12 +152,15 @@ public class Inventory extends PlayerManager implements GameDatabaseObject {
|
||||
// Save to database
|
||||
Nebula.getGameDatabase().addToSet(this, this.getUid(), "extraSkins", id);
|
||||
|
||||
// Send packet
|
||||
// Send packets
|
||||
this.getPlayer().addNextPackage(
|
||||
NetMsgId.character_skin_gain_notify,
|
||||
Skin.newInstance().setNew(UI32.newInstance().setValue(id))
|
||||
);
|
||||
|
||||
// Set flag for player to update character skins in their handbook
|
||||
this.getPlayer().getCharacters().setUpdateCharHandbook(true);
|
||||
|
||||
// Success
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user