SRMP-Public/SRMP/Patches/Patch_AchievementsDirector.cs
2023-05-29 22:23:11 +02:00

32 lines
No EOL
678 B
C#

using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SRMultiplayer.Patches
{
[HarmonyPatch(typeof(AchievementsDirector))]
[HarmonyPatch("Update")]
class AchievementsDirector_Update
{
static bool Prefix()
{
if (!Globals.DisableAchievements) return true;
return false;
}
}
[HarmonyPatch(typeof(AchievementsDirector))]
[HarmonyPatch("LateUpdate")]
class AchievementsDirector_LateUpdate
{
static bool Prefix()
{
if (!Globals.DisableAchievements) return true;
return false;
}
}
}