Commit 234392a2 authored by Thijmen's avatar Thijmen Committed by Remco

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

parent a1af30b8
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment