EclipseElevatorPatches: use void return type

This commit is contained in:
JohnCorby 2022-03-18 02:04:24 -07:00
parent a7c77be6ac
commit 0f152ca0c2

View File

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