mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
15 lines
367 B
C#
15 lines
367 B
C#
using HarmonyLib;
|
|
using MiraAPI.GameModes;
|
|
|
|
namespace MiraAPI.Patches.GameModes;
|
|
|
|
[HarmonyPatch(typeof(DeadBody))]
|
|
internal static class DeadBodyPatch
|
|
{
|
|
[HarmonyPrefix, HarmonyPatch(nameof(DeadBody.OnClick))]
|
|
public static bool OnClickPatch(DeadBody __instance)
|
|
{
|
|
return CustomGameModeManager.ActiveMode?.CanReport(__instance) == true;
|
|
}
|
|
}
|