1
0
Fork 0

If you toggle setlistener too fast it don't fire

This commit is contained in:
legoboyvdlp R 2020-04-17 22:06:58 +01:00
parent 04fb699371
commit 54c6891e4a

View file

@ -246,11 +246,11 @@ setlistener("controls/apu/master", func() {
} elsif (!APUNodes.Controls.master.getValue()) { } elsif (!APUNodes.Controls.master.getValue()) {
APUController.APU.stop(); APUController.APU.stop();
} }
}, 0, 0); }, 0, 1);
setlistener("controls/pneumatic/switches/bleedapu", func() { setlistener("controls/pneumatic/switches/bleedapu", func() {
APUController.APU.signals.bleedWasUsed = 1; APUController.APU.signals.bleedWasUsed = 1;
}, 0, 0); }, 0, 1);
var checkMasterThreeMinTimer = maketimer(0.1, func() { var checkMasterThreeMinTimer = maketimer(0.1, func() {
if (!APUNodes.Controls.master.getValue()) { if (!APUNodes.Controls.master.getValue()) {