fix: Fixes duping bags (#2148)
### Summary Fixes duping items in a container not working properly.
This commit is contained in:
parent
2c6f1854fa
commit
0a4579f298
1 changed files with 12 additions and 0 deletions
|
|
@ -120,6 +120,18 @@ public static class Dupe
|
|||
|
||||
for (var j = 0; j < src.Items.Count; j++)
|
||||
{
|
||||
c = src.Items[j].GetType().GetConstructor(out var paramCount);
|
||||
if (c == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
args = paramCount == 0 ? null : new object[paramCount];
|
||||
if (args != null)
|
||||
{
|
||||
Array.Fill(args, Type.Missing);
|
||||
}
|
||||
|
||||
var subItem = DoDupe(src.Items[j], c, args, from);
|
||||
newItem.AddItem(subItem);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue