diff options
author | cheapie <no-email-for-you@example.com> | 2025-03-16 16:04:30 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2025-03-16 16:04:30 -0500 |
commit | d4ea9138315b0397be1b529168ffa91777523968 (patch) | |
tree | 1bd4147bea0a8fcb86d0292b0fe73f3bd692fe1f /controller.lua | |
parent | d77fca515443f428f487e2991c80e5e955628366 (diff) | |
download | celevator-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.lua | 3 |
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 {} |