milan2018 #12
1 changed files with 59 additions and 52 deletions
|
@ -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)
|
Loading…
Reference in a new issue