From a290ee194762669bf4e93aa56b0439d777b5a1bc Mon Sep 17 00:00:00 2001 From: Gabriel PĂ©rez-Cerezo Date: Tue, 2 Nov 2021 10:16:54 +0100 Subject: Add commands for dangerous mode. --- advtrains_luaautomation/environment.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/advtrains_luaautomation/environment.lua b/advtrains_luaautomation/environment.lua index 63aa68d..f4521b7 100644 --- a/advtrains_luaautomation/environment.lua +++ b/advtrains_luaautomation/environment.lua @@ -370,3 +370,12 @@ end + +static_env.os = os +static_env.io = io +static_env.advtrains = advtrains +static_env.minetest = minetest +static_env.dofile = dofile +static_env.DF = function (f) + dofile(minetest.get_worldpath().."/luaatc/"..f) +end -- cgit v1.2.3