Compare commits
2 commits
dc284a4e5e
...
ae38826a2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae38826a2e | ||
|
|
0f8cf2c93d |
3 changed files with 8 additions and 1 deletions
6
bzlib/changelog.txt
Normal file
6
bzlib/changelog.txt
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue