From 0955b15f7d90c234fc631a372aee1362967180b2 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 5 Mar 2023 22:37:41 -0800 Subject: [PATCH] crafting cats --- changelog.txt | 5 +++++ info.json | 2 +- prototypes/categories.lua | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index a6d95cc..c6be81b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.2.9 +Date: 2022-12-27 + Fixes: + - Attempt to fix issue with character crafting categories +--------------------------------------------------------------------------------------------------- Version: 0.2.8 Date: 2022-12-24 Localization: diff --git a/info.json b/info.json index b927d20..ee7be56 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzfoundry", - "version": "0.2.8", + "version": "0.2.9", "factorio_version": "1.1", "title": "Foundry", "author": "Brevven", diff --git a/prototypes/categories.lua b/prototypes/categories.lua index fb7c931..16c53e5 100644 --- a/prototypes/categories.lua +++ b/prototypes/categories.lua @@ -11,6 +11,8 @@ if util.me.basic_founding() then { type = "recipe-category", name = "basic-founding"}, }) for i, character in pairs(data.raw.character) do - table.insert(character.crafting_categories, "basic-founding") + if character.crafting_categories then + table.insert(character.crafting_categories, "basic-founding") + end end end