mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
Merge branch 'dev' into message-conversion
This commit is contained in:
commit
a0e4b1506e
@ -3,6 +3,7 @@ using QSB.Events;
|
|||||||
using QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
|
using QSB.EyeOfTheUniverse.InstrumentSync.WorldObjects;
|
||||||
using QSB.Patches;
|
using QSB.Patches;
|
||||||
using QSB.WorldSync;
|
using QSB.WorldSync;
|
||||||
|
|
||||||
namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches
|
namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches
|
||||||
{
|
{
|
||||||
internal class QuantumInstrumentPatches : QSBPatch
|
internal class QuantumInstrumentPatches : QSBPatch
|
||||||
@ -10,7 +11,7 @@ namespace QSB.EyeOfTheUniverse.InstrumentSync.Patches
|
|||||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.OnPressInteract))]
|
[HarmonyPatch(typeof(QuantumInstrument), nameof(QuantumInstrument.Gather))]
|
||||||
public static void Gather(QuantumInstrument __instance)
|
public static void Gather(QuantumInstrument __instance)
|
||||||
=> QSBEventManager.FireEvent(EventNames.QSBGatherInstrument, QSBWorldSync.GetWorldFromUnity<QSBQuantumInstrument>(__instance));
|
=> QSBEventManager.FireEvent(EventNames.QSBGatherInstrument, QSBWorldSync.GetWorldFromUnity<QSBQuantumInstrument>(__instance));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user