summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2025-03-16 16:04:30 -0500
committercheapie <no-email-for-you@example.com>2025-03-16 16:04:30 -0500
commitd4ea9138315b0397be1b529168ffa91777523968 (patch)
tree1bd4147bea0a8fcb86d0292b0fe73f3bd692fe1f /controller.lua
parentd77fca515443f428f487e2991c80e5e955628366 (diff)
downloadcelevator-d4ea9138315b0397be1b529168ffa91777523968.tar
celevator-d4ea9138315b0397be1b529168ffa91777523968.tar.gz
celevator-d4ea9138315b0397be1b529168ffa91777523968.tar.bz2
celevator-d4ea9138315b0397be1b529168ffa91777523968.tar.xz
celevator-d4ea9138315b0397be1b529168ffa91777523968.zip
Add governor
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index 365cf73..cbe9ab3 100644
--- a/controller.lua
+++ b/controller.lua
@@ -444,6 +444,9 @@ function celevator.controller.finish(pos,mem,changedinterrupts)
celevator.drives[drivetype].pibeep(drivepos)
end
end
+ if type(mem.drive.status) == "table" then
+ meta:set_string("vel",tostring(mem.drive.status.vel))
+ end
end
local node = celevator.get_node(pos)
local oldmem = minetest.deserialize(meta:get_string("mem")) or {}