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

Remove some debug code

This commit is contained in:
Daniel Sosa 2015-02-16 02:33:11 +00:00
parent f1fe0c6bba
commit fad021d0ba

View 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.")