From 88c70ee233072479eeb0ccfcaccd5a117a562c22 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Fri, 25 Jun 2021 11:58:44 -0700 Subject: [PATCH] restored indentation in torus.lua --- worldeditadditions_commands/commands/torus.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldeditadditions_commands/commands/torus.lua b/worldeditadditions_commands/commands/torus.lua index b87125e..973944f 100644 --- a/worldeditadditions_commands/commands/torus.lua +++ b/worldeditadditions_commands/commands/torus.lua @@ -5,7 +5,7 @@ -- ██ ██████ ██ ██ ██████ ███████ local function parse_params_torus(params_text) local parts = worldeditadditions.split(params_text, "%s+", false) - + if #parts < 1 then return false, "Error: No replace_node specified." end @@ -15,14 +15,14 @@ local function parse_params_torus(params_text) if #parts < 3 then return false, "Error: No minor radius specified (expected integer greater than 0)." end - + local major_radius = tonumber(parts[1]) local minor_radius = tonumber(parts[2]) local replace_node = worldedit.normalize_nodename(parts[3]) local axes if #parts > 3 then axes = parts[4] end if not axes then axes = "xy" end - + if major_radius < 1 then return false, "Error: The major radius must be greater than 0." end