Remove insecure environment

It did not delete the empty folder anyway.
This commit is contained in:
Coder12a
2018-11-06 14:57:52 -06:00
parent 6dce241a2a
commit 0958f312e0
3 changed files with 3 additions and 17 deletions

View File

@ -1,8 +1,2 @@
modpath = minetest.get_modpath("colddb")
local ie = minetest.request_insecure_environment()
if ie then
loadfile(modpath .. "/colddb.lua")(ie)
else
dofile(modpath .. "/colddb.lua")
end
dofile(modpath .. "/colddb.lua")