aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/environment.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-02 10:16:54 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2021-11-02 10:16:54 +0100
commita290ee194762669bf4e93aa56b0439d777b5a1bc (patch)
tree703de8f2e64c545a725f2dfd3658b6ee2df92a1f /advtrains_luaautomation/environment.lua
parent75025b13ca3b90c0ed284920ab0f294c54eeb697 (diff)
downloadadvtrains-a290ee194762669bf4e93aa56b0439d777b5a1bc.tar.gz
advtrains-a290ee194762669bf4e93aa56b0439d777b5a1bc.tar.bz2
advtrains-a290ee194762669bf4e93aa56b0439d777b5a1bc.zip
Add commands for dangerous mode.luaatcdebug
Diffstat (limited to 'advtrains_luaautomation/environment.lua')
-rw-r--r--advtrains_luaautomation/environment.lua9
1 files changed, 9 insertions, 0 deletions
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