Having a problem when a player gets killed it some time removes a item of clothing and changes its for a party hat
Player clothing being replaced by birthday itemsNot An Issue
StripContainer(player.inventory.containerWear);
should be added to TryRestorePlayer(BasePlayer player) since they now give partyhats as default items (like torch and rock) on their birthday, which is today. PlayerInventory code:
if (PlayerInventory.IsBirthday())
{
this.GiveItem(ItemManager.CreateByName("cakefiveyear", 1, (ulong)0), this.containerBelt);
this.GiveItem(ItemManager.CreateByName("partyhat", 1, (ulong)0), this.containerWear);
}
I'm having the same issue with this.
It'll magically be over tomorrow
Locked automatically