Fix assignment to undeclared global "sign" @ worldedit_commands/init.lua:791

This commit is contained in:
sfan5 2017-09-12 14:58:26 +02:00
parent 59dc2d34d9
commit 4605596215
1 changed files with 1 additions and 0 deletions

View File

@ -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