public static bool Prefix(ref bool __result, Bed __instance) { __result = RestManager.GetCanSleep(Player.main); return(false); }