diff --git a/worldedit_commands/cuboid.lua b/worldedit_commands/cuboid.lua index 6ea1ffc..4712659 100644 --- a/worldedit_commands/cuboid.lua +++ b/worldedit_commands/cuboid.lua @@ -82,14 +82,12 @@ minetest.register_chatcommand("/inset", { minetest.register_chatcommand("/shift", { --- params = " [up|down|left|right|front|back]", params = "[x|y|z|?|up|down|left|right|front|back] [+|-]", description = "Moves the selection region. Does not move contents.", privs = {worldedit=true}, func = function(name, param) local pos1 = worldedit.pos1[name] local pos2 = worldedit.pos2[name] --- local find, _, amount, direction = param:find("(%d+)%s*(%l*)") local find, _, direction, amount = param:find("([%?%l]+)%s*([+-]?%d+)") if find == nil then @@ -97,8 +95,6 @@ minetest.register_chatcommand("/shift", { return end - worldedit.player_notify(name, "direction = " .. direction .. " amount = " .. amount) - if pos1 == nil or pos2 == nil then worldedit.player_notify(name, "Undefined region. Region must be defined beforehand.")