fix chert instrument

This commit is contained in:
Mister_Nebula 2021-12-23 22:58:16 +00:00
parent c5788a6d53
commit c8daf252f2

View File

@ -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<QSBQuantumInstrument>(__instance));
}