summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-08-30 14:24:47 -0500
committercheapie <no-email-for-you@example.com>2024-08-30 14:24:47 -0500
commit5fc526bb0f4feef1664085b5ab52f4fa2679e978 (patch)
tree49f1bf27797c280bdaae704119fc72fbd802fd49 /init.lua
parente42f70023fb77049556caae4d92e99ac74b9da3b (diff)
downloadltc4000e-5fc526bb0f4feef1664085b5ab52f4fa2679e978.tar
ltc4000e-5fc526bb0f4feef1664085b5ab52f4fa2679e978.tar.gz
ltc4000e-5fc526bb0f4feef1664085b5ab52f4fa2679e978.tar.bz2
ltc4000e-5fc526bb0f4feef1664085b5ab52f4fa2679e978.tar.xz
ltc4000e-5fc526bb0f4feef1664085b5ab52f4fa2679e978.zip
Fix a few minor bugs
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e95a537..672c344 100644
--- a/init.lua
+++ b/init.lua
@@ -785,11 +785,12 @@ minetest.register_node("ltc4000e:door_top", {
sounds = default.node_sound_metal_defaults()
})
---Make sure lights don't "stall" if unloaded and not yet converted to node timers
+--Make sure lights don't "stall" if unloaded and not yet converted to node timers, or if the timer stalled
minetest.register_lbm({
label = "Restart LTC-4000E timers",
name = "ltc4000e:restart_timers",
nodenames = {"ltc4000e:polemount","ltc4000e:nema_bottom","ltc4000e:nema_bottom_open"},
+ run_at_every_load = true,
action = function(pos)
local meta = minetest.get_meta(pos)
local mem = minetest.deserialize(meta:get_string("mem"))