summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-10 21:00:30 -0500
committercheapie <no-email-for-you@example.com>2024-05-10 21:00:30 -0500
commit6c908698d72cdac9fbc85a7e3d168fd3f431e2e3 (patch)
tree833548ad00b85e943cc564fef7dec91476aeca9e /controller.lua
parent5ac4571337aea7ea2f9153a3138c3d1db1ff981f (diff)
downloadcelevator-6c908698d72cdac9fbc85a7e3d168fd3f431e2e3.tar
celevator-6c908698d72cdac9fbc85a7e3d168fd3f431e2e3.tar.gz
celevator-6c908698d72cdac9fbc85a7e3d168fd3f431e2e3.tar.bz2
celevator-6c908698d72cdac9fbc85a7e3d168fd3f431e2e3.tar.xz
celevator-6c908698d72cdac9fbc85a7e3d168fd3f431e2e3.zip
Add nudging
Timer can be edited from the parameters menu, entering 0 disables nudging
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua4
1 files changed, 3 insertions, 1 deletions
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