mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
//ellipsoid: fix crash
This commit is contained in:
parent
9dc8165464
commit
4be7bf33d0
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
-- █████ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
|
-- █████ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
||||||
local wea_c = worldeditadditions
|
local wea_c = worldeditadditions_core
|
||||||
local Vector3 = wea_c.Vector3
|
local Vector3 = wea_c.Vector3
|
||||||
|
|
||||||
local function parse_params_ellipsoid(params_text)
|
local function parse_params_ellipsoid(params_text)
|
||||||
|
@ -17,7 +17,7 @@ local function parse_params_ellipsoid(params_text)
|
||||||
if not radius then
|
if not radius then
|
||||||
return false, "Error: 3 radii must be specified."
|
return false, "Error: 3 radii must be specified."
|
||||||
end
|
end
|
||||||
wea_c.vector.abs(radius)
|
radius = Vector3.clone(radius):abs()
|
||||||
|
|
||||||
local replace_node = worldedit.normalize_nodename(parts[4])
|
local replace_node = worldedit.normalize_nodename(parts[4])
|
||||||
if not replace_node then
|
if not replace_node then
|
||||||
|
|
Loading…
Reference in a new issue