diff --git a/main.lua b/main.lua index 85db087..81adbd9 100644 --- a/main.lua +++ b/main.lua @@ -1071,6 +1071,15 @@ function Main() local event, key, is_held = os.pullEventRaw("key") if keys.getName(key) == "q" then print("Quit Input Received") + + for _, t in Thrusters do + if t.type == "rotator" then + SetThrusterPower(t, 0.0) + peripheral.wrap(t.transmission).releaseSignal() -- release control of transmissions on quit + else + SetThrusterPower(t, 0.0) + end + end WriteConfigFiles()