private static void Postfix(Pawn pawn, Thing t, ref Job __result) { if (__result != null && !RaceAddonTools.CheckAnimal(pawn.def, t.def)) { __result = null; JobFailReason.Is("RaceAddonRestriction_FloatMenu".Translate(), null); } }