From 0f8cf2c93d2a05461852ac87d7adcf37791951ae Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 11 Mar 2026 23:39:15 +0100 Subject: [PATCH 1/2] Fix bug in add_icon when icons table is nil --- bzlib/data-util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/bzlib/data-util.lua b/bzlib/data-util.lua index c082fd6..7a91f89 100644 --- a/bzlib/data-util.lua +++ b/bzlib/data-util.lua @@ -1591,6 +1591,7 @@ function util.add_icon(recipe_name, icon, options) data.raw.recipe[recipe_name].icon = nil data.raw.recipe[recipe_name].icon_size = nil end + data.raw.recipe[recipe_name].icons = data.raw.recipe[recipe_name].icons or {} table.insert(data.raw.recipe[recipe_name].icons, icon) end end From ae38826a2e06138c60ec5746a5038983dbd3e0cb Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 11 Mar 2026 23:39:46 +0100 Subject: [PATCH 2/2] 1.0.1 --- bzlib/changelog.txt | 6 ++++++ bzlib/info.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 bzlib/changelog.txt diff --git a/bzlib/changelog.txt b/bzlib/changelog.txt new file mode 100644 index 0000000..7767941 --- /dev/null +++ b/bzlib/changelog.txt @@ -0,0 +1,6 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.0.1 +Date: 11.03.2026 + Bug Fixes: + - K2: Fix bug in matter recipe generation + - Fix bug in add_icon when icons table is nil \ No newline at end of file diff --git a/bzlib/info.json b/bzlib/info.json index b06128d..82b6b2f 100644 --- a/bzlib/info.json +++ b/bzlib/info.json @@ -1,6 +1,6 @@ { "name": "bzlib", - "version": "1.0.0", + "version": "1.0.1", "factorio_version": "2.0", "title": "BZ Lib", "description": "Library code for BZ mods",