1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-06 01:50:31 +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

@ -8,7 +8,8 @@ function worldedit.lua(code)
if not func then -- Syntax error
return err
end
local good, err = pcall(func)
local good = pcall(func)
err = pcall(func)
if not good then -- Runtime error
return err
end
@ -37,7 +38,8 @@ function worldedit.luatransform(pos1, pos2, code)
while pos.y <= pos2.y do
pos.z = pos1.z
while pos.z <= pos2.z do
local good, err = pcall(func, pos)
local good = pcall(func)
err = pcall(func, pos)
if not good then -- Runtime error
return err
end