tModLoader

tModLoader

Loot Bags
JJ's Place 2024 年 10 月 24 日 下午 9:25
Small Exception in the logs
Found this small debug message and thought i would report it:

[23:23:37.945] [.NET TP Worker/WARN] [tML]: LootBags.Items.LootBag1 has reference fields (bag, rand, loot) that may not be safe to share between clones.
For deep-cloning, add a custom Clone override and make proper copies of these fields. If shallow (memberwise) cloning is acceptable, mark the fields with [CloneByReference] or properties with [field: CloneByReference]
[23:23:37.946] [.NET TP Worker/WARN] [tML]: LootBags.Items.LootBag2 has reference fields (bag, rand, loot) that may not be safe to share between clones.
For deep-cloning, add a custom Clone override and make proper copies of these fields. If shallow (memberwise) cloning is acceptable, mark the fields with [CloneByReference] or properties with [field: CloneByReference]
[23:23:37.946] [.NET TP Worker/WARN] [tML]: LootBags.Items.LootBag3 has reference fields (bag, rand, loot) that may not be safe to share between clones.
For deep-cloning, add a custom Clone override and make proper copies of these fields. If shallow (memberwise) cloning is acceptable, mark the fields with [CloneByReference] or properties with [field: CloneByReference]
[23:23:37.946] [.NET TP Worker/WARN] [tML]: LootBags.Items.LootBag4 has reference fields (bag, rand, loot) that may not be safe to share between clones.
For deep-cloning, add a custom Clone override and make proper copies of these fields. If shallow (memberwise) cloning is acceptable, mark the fields with [CloneByReference] or properties with [field: CloneByReference]
[23:23:37.946] [.NET TP Worker/WARN] [tML]: LootBags.Items.LootBag5 has reference fields (bag, rand, loot) that may not be safe to share between clones.
For deep-cloning, add a custom Clone override and make proper copies of these fields. If shallow (memberwise) cloning is acceptable, mark the fields with [CloneByReference] or properties with [field: CloneByReference]