mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-02-05 01:02:19 +08:00
Compare commits
3 Commits
cdfe5aa842
...
f5b364c6c3
| Author | SHA1 | Date | |
|---|---|---|---|
| f5b364c6c3 | |||
| 9719b9acca | |||
| 475d667964 |
@@ -1140,7 +1140,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
|
||||
|
||||
|
||||
/* BEGIN: Item sources calculation */
|
||||
private static readonly Dictionary<int, ItemSource> ItemSources = [];
|
||||
private static readonly Dictionary<int, ItemSource> ItemSources = new();
|
||||
private static bool _itemSourcesInitialized;
|
||||
|
||||
private class ItemSource
|
||||
@@ -1211,7 +1211,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
|
||||
for (var i = 0; i < len; i++)
|
||||
{
|
||||
if (ItemSources.ContainsKey(res[i])) continue;
|
||||
var rs = new ItemSource { Count = rescnt[i], From = [], Extra = null };
|
||||
var rs = new ItemSource { Count = rescnt[i], From = new Dictionary<int, float>() };
|
||||
var it = recipe.Items;
|
||||
var itcnt = recipe.ItemCounts;
|
||||
var len2 = it.Length;
|
||||
@@ -1222,7 +1222,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
|
||||
|
||||
if (len > 1)
|
||||
{
|
||||
rs.Extra = [];
|
||||
rs.Extra = new Dictionary<int, float>();
|
||||
for (var k = 0; k < len; k++)
|
||||
{
|
||||
if (i != k)
|
||||
|
||||
Reference in New Issue
Block a user