aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 11c6914..72e1f41 100644
--- a/init.lua
+++ b/init.lua
@@ -19,7 +19,7 @@ local function render_depboard(pos, objref)
c = tb
end
for k,v in pairs(c) do
- if not tb[k] or tb[k] ~= v then
+ if not tb[k] or tb[k] ~= tostring(v) then
changed = true
end
tb[k] = tostring(v)
@@ -112,3 +112,11 @@ minetest.register_node("departureboards:departureboard", {
},
},
})
+
+
+minetest.register_abm({
+ nodenames = {"departureboards:departureboard"},
+ interval = 5,
+ chance = 1,
+ action = display_api.update_entities,
+})