spdskatr / ProjectRimFactory

ProjectRimFactory - A combination of my 3 automation mods.
MIT License
31 stars 11 forks source link

Paperclip duplicator will lose track of storage crate, withdrawn paperclips #36

Open Trisscar05 opened 5 years ago

Trisscar05 commented 5 years ago

Paperclip duplicator will lose track of storage crate, and lose withdrawn paperclips past max stack size, if a pile of clips is on top of the building. Has only occurred on save load so far, not sure if that's just luck or is actually relevant.

-Error from console:

Exception filling tab ProjectRimFactory.Industry.UI.ITab_PaperclipDuplicator: System.NullReferenceException: Object reference not set to an instance of an object at Verse.GridsUtility.GetThingList (IntVec3 c, Verse.Map map) [0x00000] in :0 at ProjectRimFactory.Storage.Building_MassStorageUnit.RegisterNewItem (Verse.Thing newItem) [0x00000] in :0 at ProjectRimFactory.Storage.Building_MassStorageUnit.Notify_ReceivedThing (Verse.Thing newItem) [0x00000] in :0 at ProjectRimFactory.Industry.UI.ITab_PaperclipDuplicator.HandleDepositWithdrawRequest () [0x00000] in :0 at ProjectRimFactory.Industry.UI.ITab_PaperclipDuplicator.FillTab () [0x00000] in :0 at Verse.InspectTabBase+cAnonStorey0.<>m0 () [0x00000] in :0 Verse.Log:Error(String, Boolean) Verse.Log:ErrorOnce(String, Int32, Boolean) Verse.cAnonStorey0:<>m0() Verse.ImmediateWindow:DoWindowContents(Rect) Verse.cAnonStorey0:<>m0(Int32) UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)