BUG: Fix InventoryCraft() overriding member numbers/names if they are already set

This commit is contained in:
bananarama92 2025-03-30 15:40:00 +02:00
parent 17b7767a9e
commit c40a362746
No known key found for this signature in database
GPG key ID: E83C7D3B5DA36248

View file

@ -694,10 +694,10 @@ function InventoryCraft(Source, Target, GroupName, Craft, Refresh, PreConfigureI
Item.Property ??= {};
Item.Difficulty ??= Item.Asset.Difficulty;
// Sets the crafter name and ID
// Sets the crafter name and ID (if not already set)
if (Source) {
Item.Craft.MemberNumber = Source.MemberNumber;
Item.Craft.MemberName = CharacterNickname(Source);
Item.Craft.MemberNumber ??= Source.MemberNumber;
Item.Craft.MemberName ??= CharacterNickname(Source);
}
// Abort; the properties below are pre-configured by crafted items the first time they're applied,