From a06413977e0d17344ee90055750ccc53434dbc1f Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 15 Jul 2021 13:29:25 -0700 Subject: [PATCH 1/4] fix mcount Chat-Command-Reference.md Co-authored-by: Starbeamrainbowlabs --- Chat-Command-Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index 2007601..87f05d3 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -784,7 +784,7 @@ Pops a selection off your per-user selection stack and applies it to the current Alias for [`//count`](#count). ``` -//mface +//mcount ``` ## `//mface` From 0ad0c63defb78e0552b2d1c2f320fe3c2f07d141 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 15 Jul 2021 13:44:56 -0700 Subject: [PATCH 2/4] Fix typos in mtools Co-authored-by: Starbeamrainbowlabs --- Chat-Command-Reference.md | 3 ++- worldeditadditions_commands/commands/measure/mtrig.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index 87f05d3..a2410eb 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -789,6 +789,7 @@ Alias for [`//count`](#count). ## `//mface` Returns the horizontal (X/Z) axis or axes the player is looking along. +Aliases: `//mfacing`. ``` //mface @@ -809,7 +810,7 @@ Returns the lengths of the current selection on the X, Y and Z axes. ``` ## `//mtrig` -Returns the length of the diagonal pos1,pos2 and it's angle on the XZ and h/Y axes. +Returns the length of the diagonal from pos1 to pos2 and its angle on the XZ (horizontal) and Y (vertical) axes. ``` //mtrig diff --git a/worldeditadditions_commands/commands/measure/mtrig.lua b/worldeditadditions_commands/commands/measure/mtrig.lua index dc0be7c..90a28c4 100644 --- a/worldeditadditions_commands/commands/measure/mtrig.lua +++ b/worldeditadditions_commands/commands/measure/mtrig.lua @@ -14,7 +14,7 @@ worldedit.register_command("mtrig", { return true end, func = function(name, params_text) - local str = "The measurements of the line pos1,pos2 are Length (D): " + local str = "The measurements of the line from pos1 to pos2 are Length (D): " local vec = v3.subtract(worldedit.pos2[name],worldedit.pos1[name]):abs() local len = vec:length() str = str..wea.round(len, 4)..", ∠XZ: ".. From 7b651d7abec58b9bd2d2dfafd52b6e4fa392a376 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 15 Jul 2021 13:47:37 -0700 Subject: [PATCH 3/4] Fix typo worldeditadditions_core/init.lua Co-authored-by: Starbeamrainbowlabs --- worldeditadditions_core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/init.lua b/worldeditadditions_core/init.lua index f4f2531..e4e22ad 100644 --- a/worldeditadditions_core/init.lua +++ b/worldeditadditions_core/init.lua @@ -10,7 +10,7 @@ local we_c = worldeditadditions_core we_c.modpath = minetest.get_modpath("worldeditadditions_core") --- Initialze WorldEdit stuff if the WorldEdit mod is not present +-- Initialise WorldEdit stuff if the WorldEdit mod is not present if not minetest.get_modpath("worldedit") then dofile(we_c.modpath.."/worldedit/init.lua") end From 49617b7f47858d7abbf3048b5cceb241bd1663bf Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 15 Jul 2021 14:04:43 -0700 Subject: [PATCH 4/4] params_text in def.parse worldeditadditions_core/register/check.lua Co-authored-by: Starbeamrainbowlabs --- worldeditadditions_core/register/check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/register/check.lua b/worldeditadditions_core/register/check.lua index 6274a74..1dfb87b 100644 --- a/worldeditadditions_core/register/check.lua +++ b/worldeditadditions_core/register/check.lua @@ -5,7 +5,7 @@ function worldeditadditions_core.register_command(def) def.require_pos = def.require_pos or 0 assert(def.require_pos >= 0 and def.require_pos < 3) if def.params == "" and not def.parse then - def.parse = function(param) return true end + def.parse = function(params_text) return true end else assert(def.parse) end