set thruster power to 0 (and release control of transmission if applicable) on quit
This commit is contained in:
9
main.lua
9
main.lua
@@ -1072,6 +1072,15 @@ function Main()
|
||||
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()
|
||||
|
||||
sentinel = false
|
||||
|
||||
Reference in New Issue
Block a user