From 874a9c698bc20e76ed43d3c821aa09188cd67249 Mon Sep 17 00:00:00 2001 From: Sn1p3rr3c0n Date: Thu, 13 Apr 2023 09:41:12 +0200 Subject: [PATCH] #699 reverted #679 --- .../Common/HarmonyPatches/PatchStorage.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/ProjectRimFactory/Common/HarmonyPatches/PatchStorage.cs b/Source/ProjectRimFactory/Common/HarmonyPatches/PatchStorage.cs index cfd21995..edd8ece0 100644 --- a/Source/ProjectRimFactory/Common/HarmonyPatches/PatchStorage.cs +++ b/Source/ProjectRimFactory/Common/HarmonyPatches/PatchStorage.cs @@ -35,7 +35,12 @@ static bool Prefix(Building_Storage __instance, Thing t, out bool __result) //Check if pawn input is forbidden if ((__instance as IForbidPawnInputItem)?.ForbidPawnInput ?? false) { - return false; + //#699 #678 + //This check is needed to support the use of the Limit function for the IO Ports + if (!__instance.slotGroup.HeldThings.Contains(t)) + { + return false; + } } return true; }