We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0221d0 commit ea1ef17Copy full SHA for ea1ef17
Source/Client/Syncing/Dict/SyncDictRimWorld.cs
@@ -810,6 +810,23 @@ public static class SyncDictRimWorld
810
}
811
}, true // implicit
812
},
813
+ {
814
+ (SyncWorker sync, ref ThingDefCount thingDefCount) =>
815
816
+ if (sync.isWriting)
817
818
+ sync.Write(thingDefCount.ThingDef);
819
+ sync.Write(thingDefCount.Count);
820
+ }
821
+ else
822
823
+ var def = sync.Read<ThingDef>();
824
+ var count = sync.Read<int>();
825
+
826
+ thingDefCount = new ThingDefCount(def, count);
827
828
829
+ },
830
#endregion
831
832
#region Databases
0 commit comments