static void Postfix(Pawn p, ref ByteGrid __result) { if (Settings.EnableCustomPathfinding) { AI_AvoidGrid.DoAvoidGrid(p, ref __result); } }