From 2567722b525f213ac6701faeb79f9b8ea4e38291 Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Sun, 8 Dec 2024 14:57:03 -0500 Subject: [PATCH] prolly shouldnt be rpc --- MiraAPI/Patches/Events/SabotageEventPatches.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/Events/SabotageEventPatches.cs b/MiraAPI/Patches/Events/SabotageEventPatches.cs index 9cd6fc3..b74d81f 100644 --- a/MiraAPI/Patches/Events/SabotageEventPatches.cs +++ b/MiraAPI/Patches/Events/SabotageEventPatches.cs @@ -11,8 +11,8 @@ namespace MiraAPI.Patches.Events; public static class SabotageEventPatches { [HarmonyPrefix] - [HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.RpcUpdateSystem), typeof(SystemTypes), typeof(byte))] - public static bool ShipStatusRpcUpdateSystemPrefix(ShipStatus __instance, SystemTypes systemType, byte amount) + [HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.UpdateSystem), typeof(SystemTypes), typeof(byte))] + public static bool ShipStatusUpdateSystemPrefix(ShipStatus __instance, SystemTypes systemType, byte amount) { var @event = new UpdateSystemEvent(systemType, amount); MiraEventManager.InvokeEvent(@event);