When creating a new item for the wardrobe, save it in the Set so it can be retreived later

This commit is contained in:
Thijmen 2021-02-28 10:58:11 +01:00 committed by Remco
parent a1af30b8e3
commit 234392a269

View File

@ -21,7 +21,9 @@ public class SaveWardrobeEvent extends MessageHandler {
wardrobeItem.setNeedsUpdate(true);
} else {
wardrobeItem = this.client.getHabbo().getInventory().getWardrobeComponent().createLook(this.client.getHabbo(), slotId, look);
wardrobeItem.setGender(HabboGender.valueOf(gender));
wardrobeItem.setNeedsInsert(true);
this.client.getHabbo().getInventory().getWardrobeComponent().getLooks().put(slotId, wardrobeItem);
}
UserSavedWardrobeEvent wardrobeEvent = new UserSavedWardrobeEvent(this.client.getHabbo(), wardrobeItem);