From 4be7bf33d0a73fc9d9ea3e7fc213a73c9134adff Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 19 Sep 2022 18:10:06 +0100 Subject: [PATCH] //ellipsoid: fix crash --- worldeditadditions_commands/commands/ellipsoid.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_commands/commands/ellipsoid.lua b/worldeditadditions_commands/commands/ellipsoid.lua index 7973dbd..c91f30b 100644 --- a/worldeditadditions_commands/commands/ellipsoid.lua +++ b/worldeditadditions_commands/commands/ellipsoid.lua @@ -3,7 +3,7 @@ -- █████ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ -- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ -- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████ -local wea_c = worldeditadditions +local wea_c = worldeditadditions_core local Vector3 = wea_c.Vector3 local function parse_params_ellipsoid(params_text) @@ -17,7 +17,7 @@ local function parse_params_ellipsoid(params_text) if not radius then return false, "Error: 3 radii must be specified." end - wea_c.vector.abs(radius) + radius = Vector3.clone(radius):abs() local replace_node = worldedit.normalize_nodename(parts[4]) if not replace_node then