1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-24 17:50:40 +01:00

Fix Lua function

This commit is contained in:
ShadowNinja 2014-12-30 00:10:51 -05:00
parent 04fdf92aca
commit 1f277147ca

View File

@ -26,7 +26,7 @@ worldedit.lua = function(code)
if not func then -- Syntax error
return err
end
local good, err = pcall(operation)
local good, err = pcall(func)
if not good then -- Runtime error
return err
end