From 78d4251d435540644e52d9d7ea9440afc84209fa Mon Sep 17 00:00:00 2001 From: Sn1p3rr3c0n Date: Sun, 19 Mar 2023 19:58:37 +0100 Subject: [PATCH] #691 fix for the Standing Drafted issue by directly updating the queue --- .../Common/HarmonyPatches/Patch_Pawn_JobTracker_StartJob.cs | 1 + .../Storage/Building_AdvancedStorageUnitIOPort.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_Pawn_JobTracker_StartJob.cs b/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_Pawn_JobTracker_StartJob.cs index a7359fc70..9a5352a1b 100644 --- a/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_Pawn_JobTracker_StartJob.cs +++ b/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_Pawn_JobTracker_StartJob.cs @@ -93,6 +93,7 @@ public static bool Prefix(Job newJob, ref Pawn ___pawn, JobCondition lastJobEndC if (target.Thing != null) { port.Value.AddItemToQueue(target.Thing); + port.Value.updateQueue(); } else { diff --git a/Source/ProjectRimFactory/Storage/Building_AdvancedStorageUnitIOPort.cs b/Source/ProjectRimFactory/Storage/Building_AdvancedStorageUnitIOPort.cs index b3c70c7af..d038006f7 100644 --- a/Source/ProjectRimFactory/Storage/Building_AdvancedStorageUnitIOPort.cs +++ b/Source/ProjectRimFactory/Storage/Building_AdvancedStorageUnitIOPort.cs @@ -63,7 +63,7 @@ private Thing GetstoredItem() public override bool IsAdvancedPort => true; - private void updateQueue() + public void updateQueue() { if (CanGetNewItem && placementQueue.Count > 0) {