From baffaf591201c9e72d7d235b812d8e6581fa0a71 Mon Sep 17 00:00:00 2001 From: Sn1p3rr3c0n Date: Fri, 14 Apr 2023 09:26:13 +0200 Subject: [PATCH] #704 fixed issue removing SaveStorage Gizmos from other buildings --- .../Patch_SaveStorageSettings_Patch_Building_GetGizmos.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_SaveStorageSettings_Patch_Building_GetGizmos.cs b/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_SaveStorageSettings_Patch_Building_GetGizmos.cs index 865bce64..403cc601 100644 --- a/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_SaveStorageSettings_Patch_Building_GetGizmos.cs +++ b/Source/ProjectRimFactory/Common/HarmonyPatches/Patch_SaveStorageSettings_Patch_Building_GetGizmos.cs @@ -113,7 +113,7 @@ static IEnumerable Transpiler_IsWorkTable(IEnumerable public static bool IsValidBuilding(Building building) { - return (building as IBillTab) != null; + return building.def.IsWorkTable || (building as IBillTab) != null; } ///