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."
end
local parts = wea_c.split(params_text,"%sdo%s")
if not parts[1] == "" then
if parts[1] == "" then
return false, "Error: No values specified."
end
if not parts[2] then