mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
EclipseElevatorPatches: use void return type
This commit is contained in:
parent
a7c77be6ac
commit
0f152ca0c2
@ -11,11 +11,9 @@ internal class EclipseElevatorPatches : QSBPatch
|
||||
{
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(ElevatorDestination), nameof(ElevatorDestination.OnPressInteract))]
|
||||
public static bool CallElevator(ElevatorDestination __instance)
|
||||
{
|
||||
__instance.GetWorldObject<QSBElevatorDestination>().SendMessage(new CallElevatorMessage());
|
||||
return true;
|
||||
}
|
||||
public static void CallElevator(ElevatorDestination __instance) =>
|
||||
__instance.GetWorldObject<QSBElevatorDestination>()
|
||||
.SendMessage(new CallElevatorMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user