From e078a2db0277713a7f9e15ea47b5293085e4c6ad Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Mon, 20 Oct 2025 10:23:37 +0200 Subject: [PATCH] Update to bzlead2 --- bzgold2/info.json | 2 +- bzgold2/prototypes/alchemy.lua | 4 ++-- bzgold2/prototypes/silver.lua | 2 +- bzgold2/settings.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bzgold2/info.json b/bzgold2/info.json index ac4a118..45e138f 100644 --- a/bzgold2/info.json +++ b/bzgold2/info.json @@ -10,7 +10,7 @@ "base >= 2.0.0", "? bzfoundry2 >= 2.0.0", "? bztitanium >= 2.0.26", - "? bzlead >= 2.0.28", + "? bzlead2 >= 2.0.29", "? bzzirconium >= 2.1.13", "? bztungsten2 >= 2.0.0", "? bzcarbon2 >= 2.0.22", diff --git a/bzgold2/prototypes/alchemy.lua b/bzgold2/prototypes/alchemy.lua index facd441..56f22cb 100644 --- a/bzgold2/prototypes/alchemy.lua +++ b/bzgold2/prototypes/alchemy.lua @@ -19,7 +19,7 @@ if util.me.alchemy() then icon_size = 128, }, { - icon = "__bzlead__/graphics/icons/lead-plate.png", + icon = "__bzlead2__/graphics/icons/lead-plate.png", icon_size = 64, icon_mipmaps = 4, shift = {-8,-8}, scale=0.25, }, }, @@ -33,7 +33,7 @@ if util.me.alchemy() then icon_size = 256, }, { - icon = "__bzlead__/graphics/icons/lead-plate.png", + icon = "__bzlead2__/graphics/icons/lead-plate.png", icon_size = 64, icon_mipmaps = 4, shift = {-48,-48}, scale=2, }, }, diff --git a/bzgold2/prototypes/silver.lua b/bzgold2/prototypes/silver.lua index 2096102..588c7aa 100644 --- a/bzgold2/prototypes/silver.lua +++ b/bzgold2/prototypes/silver.lua @@ -136,7 +136,7 @@ if util.me.silver() then -- replace lead byproducts, set copper byproducts util.set_main_product("copper-plate", "copper-plate") - if mods.bzlead and util.me.lead_byproduct() then + if mods["bzlead2"] and util.me.lead_byproduct() then util.replace_product("lead-plate", "copper-ore", "silver-ore") util.replace_product("enriched-lead", "copper-ore", "silver-ore") diff --git a/bzgold2/settings.lua b/bzgold2/settings.lua index f970126..421a618 100644 --- a/bzgold2/settings.lua +++ b/bzgold2/settings.lua @@ -50,7 +50,7 @@ data:extend({ order = "d", }, }) -if mods.bzlead then +if mods["bzlead2"] then data:extend({ { type = "bool-setting",