From 97cb6fa40a8006f007f26994873792fcc55c68e2 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 10 Sep 2025 22:35:57 +0200 Subject: [PATCH] Fix crash with Krastorio 2 --- Bio_Industries_2/data-final-fixes.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Bio_Industries_2/data-final-fixes.lua b/Bio_Industries_2/data-final-fixes.lua index b909fa8..8c658d3 100644 --- a/Bio_Industries_2/data-final-fixes.lua +++ b/Bio_Industries_2/data-final-fixes.lua @@ -324,7 +324,15 @@ if mods["Krastorio2"] or mods["Krastorio2-spaced-out"] then for _, item in pairs(items) do for _, updateItem in pairs(update) do if item.name == updateItem then - item.amount = item.amount * 4 + if item.amount then + item.amount = item.amount * 4 + end + if item.amount_min then + item.amount_min = item.amount_min * 4 + end + if item.amount_max then + item.amount_max = item.amount_max * 4 + end end end end