diff --git a/QSB/ElevatorSync/Patches/ElevatorPatches.cs b/QSB/ElevatorSync/Patches/ElevatorPatches.cs index 5d282ea9..73c2186f 100644 --- a/QSB/ElevatorSync/Patches/ElevatorPatches.cs +++ b/QSB/ElevatorSync/Patches/ElevatorPatches.cs @@ -3,7 +3,6 @@ using QSB.ElevatorSync.Messages; using QSB.ElevatorSync.WorldObjects; using QSB.Messaging; using QSB.Patches; -using QSB.Utility; using QSB.WorldSync; namespace QSB.ElevatorSync.Patches; @@ -26,22 +25,4 @@ public class ElevatorPatches : QSBPatch var qsbElevator = __instance.GetWorldObject(); qsbElevator.SendMessage(new ElevatorMessage(isGoingUp)); } - - [HarmonyPrefix] - [HarmonyPatch(typeof(Elevator), nameof(Elevator.AttachPlayerAndStartLift))] - public static void Elevator_AttachPlayerAndStartLift(Elevator __instance) - { - // attach player to their current position instead of gliding them - // to the attach point. - var attachPoint = __instance._attachPoint; - var qsbElevator = __instance.GetWorldObject(); - attachPoint.transform.position = Locator.GetPlayerTransform().position; - - // Runs when the lift/elevator is done moving. - // Reset the position of the attach point. - Delay.RunWhen(() => !__instance.enabled, () => - { - attachPoint.transform.localPosition = qsbElevator.originalAttachPosition; - }); - } }