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/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 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",