Fix showcase not updating when new characters/discs are added

This commit is contained in:
Melledy
2025-11-21 02:05:36 -08:00
parent e25d58d7f5
commit fdd4264b40
4 changed files with 67 additions and 13 deletions
@@ -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;
}