From d69dae5087644fe40f21a36b6028ac6b685a059a Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 8 Jul 2021 21:04:51 -0700 Subject: [PATCH] comment out worldedit debug stuff --- worldeditadditions_commands/commands/measure/mtrig.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/worldeditadditions_commands/commands/measure/mtrig.lua b/worldeditadditions_commands/commands/measure/mtrig.lua index e107cf1..5fc5f46 100644 --- a/worldeditadditions_commands/commands/measure/mtrig.lua +++ b/worldeditadditions_commands/commands/measure/mtrig.lua @@ -4,7 +4,7 @@ -- ██ ██ ██ ██ ██ ██ ██ ██ ██ -- ██ ██ ██ ██ ██ ██ ██████ local wea = worldeditadditions -worldeditdebug.register("abschk") +-- worldeditdebug.register("abschk") worldedit.register_command("mtrig", { params = "", description = "Return the length of each axis of current selection.", @@ -18,10 +18,10 @@ worldedit.register_command("mtrig", { local vec = vector.subtract(worldedit.pos2[name],worldedit.pos1[name]) wea.vector.abs(vec) -- Test: - if worldeditdebug.debug["abschk"][name] then - -- //debug abschk - return false, "Values = " .. worldeditdebug.table_tostring(vec) - end + -- if worldeditdebug.debug["abschk"][name] then + -- -- //debug abschk + -- return false, "Values = " .. worldeditdebug.table_tostring(vec) + -- end local len = wea.Vector3.length(vec) str = str..len..", X/Z angle: "..math.atan(vec.z/vec.x).."° h/Y angle: "..math.atan(vec.y/len).."°" return true, str