Skip to content

Commit

Permalink
Fix Reforging losing ModItem data.
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jul 25, 2018
1 parent 3fa2110 commit 65cc7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/tModLoader/Terraria/Item.cs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
+ public Item CloneWithModdedDataFrom(Item dataSource)
+ {
+ Item newItem = (Item)base.MemberwiseClone();
+ newItem.modItem = modItem?.Clone(newItem);
+ newItem.modItem = dataSource.modItem?.Clone(newItem);
+ newItem.globalItems = dataSource.globalItems.Select(g => g.Clone(dataSource, newItem)).ToArray();
+ return newItem;
}
Expand Down

0 comments on commit 65cc7d6

Please sign in to comment.