summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
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 {}