Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frozen #45

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading