summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2017-09-12 14:58:26 +0200
committersfan5 <sfan5@live.de>2017-09-12 14:58:26 +0200
commit46055962155887dc028a76ed608d8a9e18ccde0c (patch)
treef811bca6ca9a29b39c9cb9b6ed14f7bef0cc4bd0
parent59dc2d34d9eaff80314c8add85e470db59711847 (diff)
Fix assignment to undeclared global "sign" @ worldedit_commands/init.lua:791
-rw-r--r--worldedit_commands/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index a102dbc..6b6d2a7 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -788,6 +788,7 @@ minetest.register_chatcommand("/move", {
end
amount = tonumber(amount)
if axis == "?" then
+ local sign
axis, sign = worldedit.player_axis(name)
amount = amount * sign
end