forked from mtcontrib/Minetest-WorldEdit
Remove some debug code
This commit is contained in:
parent
f1fe0c6bba
commit
fad021d0ba
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user