From 285ef315abed0bc0a3d07075e24e78c7ed36550a Mon Sep 17 00:00:00 2001 From: Justus Wolff Date: Mon, 23 Feb 2026 00:52:26 +0100 Subject: [PATCH] add check so that an unevenstack only gets added if it actually has something. --- src/main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index fce5129..532b911 100644 --- a/src/main.lua +++ b/src/main.lua @@ -674,7 +674,7 @@ local function VP_splitstack(_stack, x) buf[i] = v ind = ind + 1 end - table.insert(stacks, buf) + if VP_lengthofdict(buf) > 0 then table.insert(stacks, buf) end local out = { height=height, @@ -805,6 +805,8 @@ local function randomstr(length) return out end + + while true do integritycheck() local action = selopt({