From ce75d4a034c14a8ea9e7b4efb27e96ac16b28b59 Mon Sep 17 00:00:00 2001 From: justuswolff Date: Thu, 19 Feb 2026 20:06:18 +0100 Subject: [PATCH] failcheck --- src/main.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 5fc2c63..ec74da2 100644 --- a/src/main.lua +++ b/src/main.lua @@ -900,7 +900,11 @@ while true do reset() print("Paired. Splitting stacks and sending out...") - stacks = VP_splitstack(stacks, expam+1) -- plus 1 because we also build as the master turtle. + stacks = VP_splitstack(stacks, #accepted+1) -- plus 1 because we also build as the master turtle. + if #stacks["stacks"] ~= #accepted+1 then + printError("Internal error with VP_splitstack.") + return + end for i,v in pairs(accepted) do reset() print("ID "..tostring(v).." needs "..VP_calccost(stacks["stacks"][i], stacks["height"],dimensions["x"],dimensions["z"]).." blocks.")