avoid nil subgroups
This commit is contained in:
parent
71b7c40fd4
commit
c090985a08
3 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.2.14
|
||||||
|
Date: 2024-02-07
|
||||||
|
Fixes:
|
||||||
|
- Attempt to fix a rare compatibility issue related to indexing nil value
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.2.13
|
Version: 0.2.13
|
||||||
Date: 2023-12-28
|
Date: 2023-12-28
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzfoundry",
|
"name": "bzfoundry",
|
||||||
"version": "0.2.13",
|
"version": "0.2.14",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Foundry",
|
"title": "Foundry",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ function make_recipe(recipe)
|
||||||
r.result_count = nil
|
r.result_count = nil
|
||||||
r.enabled = false
|
r.enabled = false
|
||||||
r.category = recipe.category == "casting" and "casting" or "founding"
|
r.category = recipe.category == "casting" and "casting" or "founding"
|
||||||
r.subgroup = data.raw.item[found_result].subgroup
|
r.subgroup = data.raw.item[found_result] and data.raw.item[found_result].subgroup or "foundry-intermediate"
|
||||||
icons = rusty_icons.of(data.raw.recipe[recipe.name])
|
icons = rusty_icons.of(data.raw.recipe[recipe.name])
|
||||||
table.insert(
|
table.insert(
|
||||||
icons,
|
icons,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue