Compare commits

..

2 commits

Author SHA1 Message Date
Simon Brodtmann
56593eb6f7 2.0.24 2025-10-18 09:53:10 +02:00
Simon Brodtmann
606bcedb5b Krastorio2: Compatibility fixes 2025-10-18 09:52:39 +02:00
3 changed files with 11 additions and 5 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.24
Date: 18.10.2025
Bug Fixes:
- Krastorio2: Compatibility fixes
---------------------------------------------------------------------------------------------------
Version: 2.0.23 Version: 2.0.23
Date: 17.10.2025 Date: 17.10.2025
Bug Fixes: Bug Fixes:

View file

@ -488,6 +488,7 @@ if not data.raw.fluid["nitrogen"] and not data.raw.fluid["kr-nitrogen"] then
-- Recipes for "bi-liquid-air" and "bi-nitrogen" aren't needed! -- Recipes for "bi-liquid-air" and "bi-nitrogen" aren't needed!
else else
local oxygen = mods["Krastorio2"] and "kr-oxygen" or "oxygen"
local nitrogen = mods["Krastorio2"] and "kr-nitrogen" or "nitrogen" local nitrogen = mods["Krastorio2"] and "kr-nitrogen" or "nitrogen"
-- Remove recipe unlocks -- Remove recipe unlocks
@ -496,12 +497,12 @@ else
BioInd.writeDebug("Removed recipe unlocks for \"bi-liquid-air\" and \"bi-nitrogen\"") BioInd.writeDebug("Removed recipe unlocks for \"bi-liquid-air\" and \"bi-nitrogen\"")
-- Replace liquid air with oxygen (from Krastorio/K2) in recipes for Algae Biomass 2 and 3 -- Replace liquid air with oxygen (from Krastorio/K2) in recipes for Algae Biomass 2 and 3
if data.raw.fluid.oxygen then if data.raw.fluid[oxygen] then
thxbob.lib.recipe.replace_ingredient("bi-biomass-2", "liquid-air", "kr-oxygen") thxbob.lib.recipe.replace_ingredient("bi-biomass-2", "liquid-air", oxygen)
thxbob.lib.recipe.replace_ingredient("bi-biomass-3", "liquid-air", "kr-oxygen") thxbob.lib.recipe.replace_ingredient("bi-biomass-3", "liquid-air", oxygen)
BioInd.writeDebug("Replaced \"liquid-air\" with \"oxygen\" in recipes \"bi-biomass-2\" and \"bi-biomass-3\"") BioInd.writeDebug("Replaced \"liquid-air\" with \"oxygen\" in recipes \"bi-biomass-2\" and \"bi-biomass-3\"")
-- Perhaps there is no oxygen? But there's nitrogen for sure, so we fall back to that! -- Perhaps there is no oxygen? But there's nitrogen for sure, so we fall back to that!
elseif data.raw.fluid.nitrogen then elseif data.raw.fluid[nitrogen] then
thxbob.lib.recipe.replace_ingredient("bi-biomass-2", "liquid-air", nitrogen) thxbob.lib.recipe.replace_ingredient("bi-biomass-2", "liquid-air", nitrogen)
thxbob.lib.recipe.replace_ingredient("bi-biomass-3", "liquid-air", nitrogen) thxbob.lib.recipe.replace_ingredient("bi-biomass-3", "liquid-air", nitrogen)
BioInd.writeDebug("Replaced \"liquid-air\" with \"nitrogen\" in recipes \"bi-biomass-2\" and \"bi-biomass-3\"") BioInd.writeDebug("Replaced \"liquid-air\" with \"nitrogen\" in recipes \"bi-biomass-2\" and \"bi-biomass-3\"")

View file

@ -1,6 +1,6 @@
{ {
"name": "Bio_Industries_2", "name": "Bio_Industries_2",
"version": "2.0.23", "version": "2.0.24",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Bio Industries", "title": "Bio Industries",
"author": "TheSAguy - Had a few Ideas, Pi-C (Programming Genius), Snouz (Graphics Wizard), Cackling Fiend - Conversion to F2.0", "author": "TheSAguy - Had a few Ideas, Pi-C (Programming Genius), Snouz (Graphics Wizard), Cackling Fiend - Conversion to F2.0",