summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-12-30 00:10:51 -0500
committerShadowNinja <shadowninja@minetest.net>2014-12-30 00:11:49 -0500
commit1f277147ca03788b784ee13fb1dd4e07889b4b59 (patch)
treefd86488ce63b712977963611aff2d3322d5c267f
parent04fdf92aca66641de87a6e7d00de2bdd796858d1 (diff)
Fix Lua function
-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