Aktualizovat „worldedit/worldedit/code.lua“

This commit is contained in:
Milan2018 2020-07-30 11:19:02 +02:00
parent 5e494bd7f2
commit 28e0dac6f0

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 input then
local code = input:read("*a")
input:close()
worldedit.lua(code)
end