Safely get clothing key
Some checks are pending
Linux / build (Release) (push) Waiting to run
MacOS / build (Release) (push) Waiting to run
Windows / build (Release) (push) Waiting to run

This commit is contained in:
Manu 2025-10-27 18:47:36 +01:00
parent 81cf6514f8
commit 84ac05f77f

View File

@ -104,9 +104,14 @@ public class OtherGift
if ((GiftType9A)type is GiftType9A.Item)
str = Properties.Resources.Items.Split(new String[] { "\n" }, StringSplitOptions.None)[id];
else if ((GiftType9A)type is GiftType9A.Clothing)
str = Clothing9A[opt];
{
if (!Clothing9A.TryGetValue(opt, out str))
str = "Unknown Clothing Item";
}
else
{
str = ((GiftType9A)type).ToString();
}
}
return str;
}