Fix typos in comments

This commit is contained in:
VorTechnix 2021-05-17 11:18:09 -07:00 committed by Starbeamrainbowlabs
parent 63d284b35b
commit 2b02f9ff2e
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 3 deletions

View File

@ -10,9 +10,8 @@
-- @param hollow=false boolean Whether the generated torus should be hollow or not.
function worldeditadditions.torus(position, major_radius, minor_radius, target_node, axes, hollow)
local matrix = {x='yz', y='xz', z='xy'}
if type(axes) ~= "string" then axes = "xz"
elseif #axes == 1 and axes.match('[xyz]') then axes = matrix[axes]
else axes = ((axes:match('x') or '')..(axes:match('y') or '')..(axes:match('z') or '')):sub(1,2) end
if type(axes) ~= "string" then axes = "xz" end
if #axes == 1 and axes.match('[xyz]') then axes = matrix[axes] end
-- position = { x, y, z }
local total_radius = major_radius + minor_radius