From ef28e20dfac595a86453c0647e7d0ee19afc64d1 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 12 Feb 2022 00:14:04 -0800 Subject: [PATCH] update --- data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-util.lua b/data-util.lua index 38e91d0..84b7785 100644 --- a/data-util.lua +++ b/data-util.lua @@ -70,7 +70,7 @@ end function util.remove_prerequisite(technology_name, prerequisite) local technology = data.raw.technology[technology_name] local index = -1 - if technology and data.raw.technology[prerequisite] then + if technology then for i, prereq in pairs(technology.prerequisites) do if prereq == prerequisite then index = i @@ -558,7 +558,7 @@ function util.add_crafting_category(entity_type, entity, category) if data.raw[entity_type][entity] then for i, existing in pairs(data.raw[entity_type][entity].crafting_categories) do if existing == category then - log(entity.." not adding "..new.." -- duplicate") + log(entity.." not adding "..category.." -- duplicate") return end end