Fix Lua function

This commit is contained in:
ShadowNinja 2014-12-30 00:10:51 -05:00
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