1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-05 01:20:34 +02:00

Remove ignore list and fix many warnings

This commit is contained in:
Panquesito7
2020-02-08 01:27:57 -06:00
parent 198cd4b4bc
commit 25aaab20de
10 changed files with 44 additions and 43 deletions

View File

@ -26,8 +26,13 @@ end
function worldedit.metaload(originpos, filename)
deprecated("load")
local file = io.open(filename, "wb")
filename = minetest.get_worldpath() .. "/schems/" .. file .. ".wem"
local file, err = io.open(filename, "wb")
file = io.open(filename, "wb")
local err = io.open(filename, "wb")
if err then return 0 end
local data = file:read("*a")
return worldedit.deserialize(originpos, data)