Skip to content

Commit

Permalink
Merge pull request #45 from pyanodon/Frozen
Browse files Browse the repository at this point in the history
Frozen
  • Loading branch information
kingarthur91 authored Feb 9, 2024
2 parents 34e02e7 + 3ed024f commit 0a99e83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 7 additions & 6 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------------------------------
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0a99e83

Please sign in to comment.