From 86f01cd44231c0fa99c00e371f72b32ab7ab364e Mon Sep 17 00:00:00 2001 From: lbmaian Date: Fri, 21 Oct 2022 23:12:59 -0700 Subject: [PATCH] Update PlaceWorker_OnTopOfWalls to consider smoothed buildings as walls (parity with DoorsExpanded) --- .../JecsTools/PlaceWorker_OnTopOfWalls.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/AllModdingComponents/JecsTools/PlaceWorker_OnTopOfWalls.cs b/Source/AllModdingComponents/JecsTools/PlaceWorker_OnTopOfWalls.cs index c1fb13b9..34f490ec 100644 --- a/Source/AllModdingComponents/JecsTools/PlaceWorker_OnTopOfWalls.cs +++ b/Source/AllModdingComponents/JecsTools/PlaceWorker_OnTopOfWalls.cs @@ -14,8 +14,8 @@ public override AcceptanceReport AllowsPlacing(BuildableDef checkingDef, IntVec3 static bool IsWall(Thing thing) { - // In RW 1.3+, it seems like BuildingProperties.isPlaceOverableWall indicates whether something is a "wall". - if (thing.def.building?.isPlaceOverableWall ?? false) + // In RW 1.3+, it seems like BuildingProperties.isPlaceOverableWall or ThingDef.IsSmoothed indicates whether something is a "wall". + if (thing.def is { building: { isPlaceOverableWall: true } } or { IsSmoothed: true }) return true; // Legacy heuristic for mods that don't use isPlaceOverableWall. if (thing.def.defName.Contains("Wall"))