mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
ellipsoid parse tweak
This commit is contained in:
parent
830e5f0d53
commit
75c998f369
@ -5,11 +5,7 @@
|
|||||||
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
local function parse_params_ellipsoid(params_text)
|
local function parse_params_ellipsoid(params_text)
|
||||||
local parts = worldeditadditions.split(params_text, "%s+", false)
|
local parts = wea.split(params_text, "%s+", false)
|
||||||
-- Test: ('1 2 3 stone h')
|
|
||||||
-- Test: ('1 gill 3 stone h')
|
|
||||||
-- /lua a = worldeditadditions.split(" ", "%s+", false)
|
|
||||||
-- /lua worldeditadditions.split(" ", "%s+", false)
|
|
||||||
|
|
||||||
if #parts < 4 then
|
if #parts < 4 then
|
||||||
return false, "Error: Not enough arguments. Expected \"<rx> <ry> <rz> <replace_node> [h[ollow]]\"."
|
return false, "Error: Not enough arguments. Expected \"<rx> <ry> <rz> <replace_node> [h[ollow]]\"."
|
||||||
|
Loading…
Reference in New Issue
Block a user