prolly shouldnt be rpc

This commit is contained in:
XtraCube committed 2024-12-08 14:57:03 -05:00
1 parent 04ee35d708
commit 2567722b52
1 file changed
+2 -2
@@ -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);