Fix bad logic in parts check

This commit is contained in:
VorTechnix 2023-05-24 13:03:41 -07:00
parent 8652ad6335
commit b88cec64d4

View file

@ -54,7 +54,7 @@ worldeditadditions_core.register_command("for", {
return false, "Error: \"do\" argument is not present." return false, "Error: \"do\" argument is not present."
end end
local parts = wea_c.split(params_text,"%sdo%s") local parts = wea_c.split(params_text,"%sdo%s")
if not parts[1] == "" then if parts[1] == "" then
return false, "Error: No values specified." return false, "Error: No values specified."
end end
if not parts[2] then if not parts[2] then