Fix command issue

This commit is contained in:
Joachim Stolberg 2025-01-01 16:55:48 +01:00
parent ae6e1f2af3
commit e9c868e264

View File

@ -245,8 +245,13 @@ local function determine_recipe_items(pos, input)
-- Test if "<node-number>.<recipe-number>" input
num, idx = unpack(string.split(input, ".", false, 1))
elseif input and type(input) == "table" then -- Beduino
num = tostring(input[1] * 65536 + input[2])
idx = tostring(input[3])
if input[3] == 0 then -- TA3 Terminal Basic
num = tostring(input[1])
idx = tostring(input[2])
else -- 16 bit Beduino controller
num = tostring(input[1] * 65536 + input[2])
idx = tostring(input[3])
end
end
if num and idx then