From d4ea9138315b0397be1b529168ffa91777523968 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 16 Mar 2025 16:04:30 -0500 Subject: Add governor --- controller.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'controller.lua') 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 {} -- cgit v1.2.3