Skip to content

Commit 041086a

Browse files
authored
Fix: Starting items not marked as forbidden (#575)
All Things were being added to the unforbidden list, whether they were forbidden or not.
1 parent 78d0c2d commit 041086a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Client/Factions/Forbiddables.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static void Prefix(Thing __instance, Map map, bool respawningAfterLoad)
7272

7373
if (ThingContext.stack.Any(p => p.Item1?.def == ThingDefOf.ActiveDropPod)) return;
7474

75-
if (__instance is ThingWithComps t && t.GetComp<CompForbiddable>() != null)
75+
if (__instance is ThingWithComps t && t.GetComp<CompForbiddable>() != null && !t.GetComp<CompForbiddable>().forbiddenInt)
7676
map.MpComp().GetCurrentCustomFactionData().unforbidden.Add(__instance);
7777
}
7878
}

0 commit comments

Comments
 (0)