public static void Postfix(Map ___map) { if (___map == Find.CurrentMap) { BaseOverlay.SetDirty(typeof(CoverageOverlay)); //because moisture pumps change terrain } }
public static void Postfix(Thing t, Map ___map) { if (___map == Find.CurrentMap) { if (CoverageOverlay.activeType != null && GenConstruct.BuiltDefOf(t.def) == CoverageOverlay.activeType.CoverageDef()) { BaseOverlay.SetDirty(typeof(CoverageOverlay)); } } }