Compare commits

..

2 commits

Author SHA1 Message Date
Simon Brodtmann
ae38826a2e 1.0.1 2026-03-11 23:39:46 +01:00
Simon Brodtmann
0f8cf2c93d Fix bug in add_icon when icons table is nil 2026-03-11 23:39:15 +01:00
3 changed files with 8 additions and 1 deletions

6
bzlib/changelog.txt Normal file
View file

@ -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

View file

@ -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 = nil
data.raw.recipe[recipe_name].icon_size = nil data.raw.recipe[recipe_name].icon_size = nil
end end
data.raw.recipe[recipe_name].icons = data.raw.recipe[recipe_name].icons or {}
table.insert(data.raw.recipe[recipe_name].icons, icon) table.insert(data.raw.recipe[recipe_name].icons, icon)
end end
end end

View file

@ -1,6 +1,6 @@
{ {
"name": "bzlib", "name": "bzlib",
"version": "1.0.0", "version": "1.0.1",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "BZ Lib", "title": "BZ Lib",
"description": "Library code for BZ mods", "description": "Library code for BZ mods",