summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worldedit/code.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit/code.lua b/worldedit/code.lua
index dc58299..2959bf8 100644
--- a/worldedit/code.lua
+++ b/worldedit/code.lua
@@ -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