fix for flying bug

This commit is contained in:
2024-12-31 19:13:10 -06:00
parent 30129d161f
commit fbd910ef50
@@ -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