From d6a82759387afbab104a65b5f7073ee09ec5ca60 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Sun, 21 Sep 2025 23:01:29 +0800 Subject: [PATCH] minor fix --- CheatEnabler/Patches/FactoryPatch.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CheatEnabler/Patches/FactoryPatch.cs b/CheatEnabler/Patches/FactoryPatch.cs index 3c858ee..793d20b 100644 --- a/CheatEnabler/Patches/FactoryPatch.cs +++ b/CheatEnabler/Patches/FactoryPatch.cs @@ -1141,7 +1141,7 @@ public class FactoryPatch : PatchImpl /* BEGIN: Item sources calculation */ - private static readonly Dictionary ItemSources = new(); + private static readonly Dictionary ItemSources = []; private static bool _itemSourcesInitialized; private class ItemSource @@ -1212,7 +1212,7 @@ public class FactoryPatch : PatchImpl for (var i = 0; i < len; i++) { if (ItemSources.ContainsKey(res[i])) continue; - var rs = new ItemSource { Count = rescnt[i], From = new Dictionary() }; + var rs = new ItemSource { Count = rescnt[i], From = [], Extra = null }; var it = recipe.Items; var itcnt = recipe.ItemCounts; var len2 = it.Length; @@ -1223,7 +1223,7 @@ public class FactoryPatch : PatchImpl if (len > 1) { - rs.Extra = new Dictionary(); + rs.Extra = []; for (var k = 0; k < len; k++) { if (i != k)