UASPARSE touchups

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
VorTechnix 2024-10-01 06:51:38 -07:00 committed by GitHub
parent a794429961
commit f399d475cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,12 +9,12 @@ local wea_c = worldeditadditions_core
worldeditadditions_core.register_command("uasparse", {
params = "<unified axis syntax>",
description = "Returns min and max vectors for given inputs",
description = "Debug command. Returns min and max vectors for given inputs",
privs = { worldedit = true },
-- require_pos = 2,
parse = function(params_text)
local ret = wea_c.split(params_text)
if #ret < 1 then return false, "UASPARSE: No params found!"
if #ret < 1 then return false, "Error: No params found!"
else return true, ret end
end,
func = function(name, params_text)