From e6db86eef7b05099e75daa00cc484f806407c5bf Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Tue, 30 Jan 2024 16:58:25 -0600 Subject: [PATCH 1/2] Fix crash without pyCP --- data-final-fixes.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 0da334f..bd4264a 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -6,8 +6,6 @@ require('__stdlib__/stdlib/data/data').Util.create_data_globals() local table = require('__stdlib__/stdlib/utils/table') local config = require 'prototypes.config' -local FUN = require('__pycoalprocessing__/prototypes/functions/functions') - ---------------------------------------------------- -- THIRD PARTY COMPATIBILITY ---------------------------------------------------- @@ -220,10 +218,13 @@ if mods['PyBlock'] then create_tmp_tech('borax-mine', 'glass') end -for _, recipe in pairs(data.raw.module['productivity-module'].limitation or {}) do - recipe = data.raw.recipe[recipe] - if recipe then - FUN.add_to_description('recipe', recipe, {'recipe-description.affected-by-productivity'}) +if mods.pycoalprocessing then + local FUN = require('__pycoalprocessing__/prototypes/functions/functions') + for _, recipe in pairs(data.raw.module['productivity-module'].limitation or {}) do + recipe = data.raw.recipe[recipe] + if recipe then + FUN.add_to_description('recipe', recipe, {'recipe-description.affected-by-productivity'}) + end end end From 3ed024ff1d7be6d0fcacce88cd2f56e94db10f21 Mon Sep 17 00:00:00 2001 From: notnotmelon Date: Tue, 30 Jan 2024 17:01:12 -0600 Subject: [PATCH 2/2] changelog --- changelog.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changelog.txt b/changelog.txt index d4ecfad..bd58570 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.2.19 +Date: ??? + Changes: + - Fix crash with pyCP is missing +--------------------------------------------------------------------------------------------------- Version: 0.2.18 Date: 2024-1-20 Changes: