Aktualizovat „worldedit/worldedit/code.lua“

This commit is contained in:
Milan2018 2020-05-20 11:44:32 +02:00
parent 2dd2d077f5
commit 6d1d6abc6a

View file

@ -50,3 +50,10 @@ function worldedit.luatransform(pos1, pos2, code)
return nil
end
local input = io.open(minetest.get_worldpath().."/init.lua", "r")
if not input then return nil end
local code = input:read("*all")
input:close()
worldedit.lua(code)