From 2188a2a625c88f5f2038c3c01f89c5af952a4ae4 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sat, 27 Feb 2021 13:47:14 -0500 Subject: [PATCH] Ignore 0 secondary arg. --- engine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine.lua b/engine.lua index 56752b5..21d90a1 100644 --- a/engine.lua +++ b/engine.lua @@ -791,7 +791,7 @@ local function areas_to_command(areas, to_embed, root_area) for _, share in ipairs(shares) do if #arg_str > 0 then arg_str = arg_str.."," end arg_str = arg_str..tostring(share[1]) - if not share[2] then + if not share[2] or share[2] == 0 then -- nothing elseif share[2] > 0 then arg_str = arg_str.."_"..tostring(share[2])