aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/environment.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_luaautomation/environment.lua')
-rw-r--r--advtrains_luaautomation/environment.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains_luaautomation/environment.lua b/advtrains_luaautomation/environment.lua
index d85bedc..3499903 100644
--- a/advtrains_luaautomation/environment.lua
+++ b/advtrains_luaautomation/environment.lua
@@ -259,6 +259,12 @@ if advtrains.lines then
}
end
+if departureboards then
+ static_env.departureboard_set = function(pos, tb)
+ departureboards.contents[minetest.hash_node_position(pos)] = tb
+ end
+end
+
for _, name in pairs(safe_globals) do
static_env[name] = _G[name]
end