diff --git a/Source/HarmonyPatches.cs b/Source/HarmonyPatches.cs index 605a278..1026120 100644 --- a/Source/HarmonyPatches.cs +++ b/Source/HarmonyPatches.cs @@ -590,6 +590,12 @@ public static bool WipeExistingThings(IntVec3 thingPos, Rot4 thingRot, Buildable //GenSpawn public static void InvisDoorsDontWipe(BuildableDef newEntDef, BuildableDef oldEntDef, ref bool __result) { + if (newEntDef.defName.StartsWith("Fragment_") && + oldEntDef.defName.StartsWith("Fragment_")) + { + return; + } + var oldTrueDef = DefDatabase.AllDefs.FirstOrDefault(predicate: x => x.defName == oldEntDef.defName); var newTrueDef = @@ -904,4 +910,4 @@ public static void GetHeronRegionType(ref RegionType __result, IntVec3 c, Map ma } } } -} \ No newline at end of file +}