From 6c908698d72cdac9fbc85a7e3d168fd3f431e2e3 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 10 May 2024 21:00:30 -0500 Subject: Add nudging Timer can be edited from the parameters menu, entering 0 disables nudging --- controller.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'controller.lua') diff --git a/controller.lua b/controller.lua index 184da36..2e47c98 100644 --- a/controller.lua +++ b/controller.lua @@ -437,7 +437,7 @@ function celevator.controller.finish(pos,mem,changedinterrupts) elseif command.command == "open" then minetest.after(0.25,celevator.drives[drivetype].movedoors,drivepos,"open") elseif command.command == "close" then - celevator.drives[drivetype].movedoors(drivepos,"close") + celevator.drives[drivetype].movedoors(drivepos,"close",command.nudge) elseif command.command == "resetfault" then celevator.drives[drivetype].resetfault(drivepos) elseif command.command == "pibeep" then @@ -505,6 +505,8 @@ function celevator.controller.finish(pos,mem,changedinterrupts) celevator.pi.flash(pi.pos,what) end end + carinfo.flash_blank = mem.flash_blank + if mem.flash_blank ~= oldmem.flash_blank then carinfodirty = true end local oldlanterns = oldmem.lanterns or {} local newlanterns = mem.lanterns or {} local lanterns = carinfo.lanterns -- cgit v1.2.3