mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 18:20:38 +01:00
Fix Lua function
This commit is contained in:
parent
04fdf92aca
commit
1f277147ca
@ -26,7 +26,7 @@ worldedit.lua = function(code)
|
|||||||
if not func then -- Syntax error
|
if not func then -- Syntax error
|
||||||
return err
|
return err
|
||||||
end
|
end
|
||||||
local good, err = pcall(operation)
|
local good, err = pcall(func)
|
||||||
if not good then -- Runtime error
|
if not good then -- Runtime error
|
||||||
return err
|
return err
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user