static void Postfix(Road __instance, ref bool __result, Cell c) { try { if (__instance != null) { Mod.helper.Log("test"); Cell roadCell = World.inst.GetCellData(__instance.transform.position); if (roadCell != null && c != null) { CellMark markFrom = ElevationManager.GetCellMark(roadCell); CellMark markTo = ElevationManager.GetCellMark(c); if (markFrom != null && markTo != null) { if (ElevationManager.ValidTileForElevation(roadCell) && ElevationManager.ValidTileForElevation(c)) { if (!(markFrom.elevationTier - markTo.elevationTier == 1 || markFrom.elevationTier - markTo.elevationTier == 0)) { __result = false; } } } } } } catch (Exception ex) { DebugExt.HandleException(ex); } }