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
return err
end
local good, err = pcall(operation)
local good, err = pcall(func)
if not good then -- Runtime error
return err
end