mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
Fix typos in mtools
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
a06413977e
commit
0ad0c63def
2 changed files with 3 additions and 2 deletions
|
@ -789,6 +789,7 @@ Alias for [`//count`](#count).
|
||||||
|
|
||||||
## `//mface`
|
## `//mface`
|
||||||
Returns the horizontal (X/Z) axis or axes the player is looking along.
|
Returns the horizontal (X/Z) axis or axes the player is looking along.
|
||||||
|
Aliases: `//mfacing`.
|
||||||
|
|
||||||
```
|
```
|
||||||
//mface
|
//mface
|
||||||
|
@ -809,7 +810,7 @@ Returns the lengths of the current selection on the X, Y and Z axes.
|
||||||
```
|
```
|
||||||
|
|
||||||
## `//mtrig`
|
## `//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
|
//mtrig
|
||||||
|
|
|
@ -14,7 +14,7 @@ worldedit.register_command("mtrig", {
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
func = function(name, params_text)
|
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 vec = v3.subtract(worldedit.pos2[name],worldedit.pos1[name]):abs()
|
||||||
local len = vec:length()
|
local len = vec:length()
|
||||||
str = str..wea.round(len, 4)..", ∠XZ: "..
|
str = str..wea.round(len, 4)..", ∠XZ: "..
|
||||||
|
|
Loading…
Reference in a new issue