1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 18:20:38 +01:00

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

View File

@ -788,6 +788,7 @@ minetest.register_chatcommand("/move", {
end end
amount = tonumber(amount) amount = tonumber(amount)
if axis == "?" then if axis == "?" then
local sign
axis, sign = worldedit.player_axis(name) axis, sign = worldedit.player_axis(name)
amount = amount * sign amount = amount * sign
end end