]> git.lizzy.rs Git - worldedit.git/commitdiff
Remove some debug code
authorDaniel Sosa <sosa.daniel23@gmail.com>
Mon, 16 Feb 2015 02:33:11 +0000 (02:33 +0000)
committerDaniel Sosa <sosa.daniel23@gmail.com>
Mon, 4 Jul 2016 02:44:02 +0000 (21:44 -0500)
worldedit_commands/cuboid.lua

index 6ea1ffcdd2151aee76eae61354586db60302f0fa..47126595adf507c0967eb1f7416fd907d546645b 100644 (file)
@@ -82,14 +82,12 @@ minetest.register_chatcommand("/inset", {
 
 
 minetest.register_chatcommand("/shift", {
---     params = "<amount> [up|down|left|right|front|back]",
        params = "[x|y|z|?|up|down|left|right|front|back] [+|-]<amount>",
        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.")