From 1cee258d5639e7069e53bcb933edbdc272751111 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 23:34:34 +0200 Subject: [PATCH 1/2] Fix booleans being strings --- bzcarbon2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bzcarbon2/data-util.lua b/bzcarbon2/data-util.lua index 1433824..6f1e7ce 100644 --- a/bzcarbon2/data-util.lua +++ b/bzcarbon2/data-util.lua @@ -1748,8 +1748,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier) end util.remove_prior_unlocks(tech, old) for i, recipe in pairs(data.raw.recipe) do - if (recipe.enabled and recipe.enabled ~= 'false') - and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes + if (recipe.enabled and recipe.enabled ~= false) + and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :( then -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| From d4952e2620669270d322fe7b7ae1f9d57015dad7 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 23:34:50 +0200 Subject: [PATCH 2/2] Fix graphite recipe icon scale --- bzcarbon2/carbon-recipe.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bzcarbon2/carbon-recipe.lua b/bzcarbon2/carbon-recipe.lua index f2d3d03..23c10cd 100644 --- a/bzcarbon2/carbon-recipe.lua +++ b/bzcarbon2/carbon-recipe.lua @@ -43,7 +43,7 @@ data:extend({ icons = (util.k2() and { { icon = "__bzcarbon2__/graphics/icons/graphite.png", icon_size = 128}, - { icon = "__bzcarbon2__/graphics/icons/flake-graphite.png", icon_size = 128, icon_mipmaps = 3, scale=0.25, shift= {-8, -8}}, + { icon = "__bzcarbon2__/graphics/icons/flake-graphite.png", icon_size = 128, icon_mipmaps = 3, scale=0.125, shift= {-8, -8}}, } or nil), -- normal = (util.k2() and -- {