From c8daf252f2718be798e1b871e4690abc2b785fce Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Thu, 23 Dec 2021 22:58:16 +0000 Subject: [PATCH] fix chert instrument --- .../InstrumentSync/Patches/QuantumInstrumentPatches.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs b/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs index 9e641193..2a34c20e 100644 --- a/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs +++ b/QSB/EyeOfTheUniverse/InstrumentSync/Patches/QuantumInstrumentPatches.cs @@ -3,6 +3,7 @@ using QSB.Events; using QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects; using QSB.Patches; using QSB.WorldSync; + namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches { internal class QuantumInstrumentPatches : QSBPatch @@ -10,7 +11,7 @@ namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; [HarmonyPostfix] - [HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.OnPressInteract))] + [HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.Gather))] public static void Gather(QuantumInstrument __instance) => QSBEventManager.FireEvent(EventNames.QSBGatherInstrument, QSBWorldSync.GetWorldFromUnity(__instance)); }