From cc888b2e17eb4550f05028596fab57e4f3bb02b4 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 14 Jun 2025 22:52:55 -0700 Subject: [PATCH] up --- data-util.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/data-util.lua b/data-util.lua index c4144a0..ddf7a5d 100644 --- a/data-util.lua +++ b/data-util.lua @@ -684,7 +684,7 @@ function util.se_matter(params) {"se-astronomic-science-pack-4", 1}, {"se-energy-science-pack-4", 1}, {"se-material-science-pack-4", 1}, - {"matter-tech-card", 1}, + {"kr-matter-tech-card", 1}, {"se-deep-space-science-pack-1", 1}, } @@ -1896,12 +1896,14 @@ function util.redo_recycling() -- Find all recycling recipes that result in armor and make sure not to output more than 1 for _, recipe in pairs(data.raw.recipe) do if recipe.name:find("recycling") then - for _, product in pairs(recipe.results) do - if data.raw.armor[product.name] then - if product.amount then - if product.amount > .99 then - product.amount = 1 - product.extra_count_fraction = nil + if recipe.results then + for _, product in pairs(recipe.results) do + if data.raw.armor[product.name] then + if product.amount then + if product.amount > .99 then + product.amount = 1 + product.extra_count_fraction = nil + end end end end