From fbd910ef50f623f060d565e6dec19a7826ec0fd5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 19:13:10 -0600 Subject: [PATCH] fix for flying bug --- src/engine/net/client/handlers/ChangeAltitudeHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/ChangeAltitudeHandler.java b/src/engine/net/client/handlers/ChangeAltitudeHandler.java index cdc2ea99..d46742c8 100644 --- a/src/engine/net/client/handlers/ChangeAltitudeHandler.java +++ b/src/engine/net/client/handlers/ChangeAltitudeHandler.java @@ -47,13 +47,16 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler { if (pc.region != null && !pc.region.isOutside()) return false; - // Find out if we already have an altitude timer running and if so // do not process more alt change requests + pc.updateFlight(); + if (pc.getTakeOffTime() != 0) return false; + pc.setTakeOffTime(System.currentTimeMillis()); + // remove all movement timers and jobs //TODO: test if they can fly