Skip to content

Commit

Permalink
Bob's Mods / Agriculture Modules compatibility (#938)
Browse files Browse the repository at this point in the history
Prevent Bob's mods from enabling Agriculture Modules for non bio recipes
  • Loading branch information
KiwiHawk authored Sep 25, 2023
1 parent cc71dd4 commit 7fbf87e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions angelsbioprocessing/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Date: xx.xx.xxxx
- Recipe changes for Tree seed generators, Arboretum, and Composter
- Tech tree changes
- Added custom error message for when trying to insert invalid items into butchery, composter, or hatchery (933)
- Prevent Bob's mods from enabling Agriculture Modules for non bio recipes (937)
---------------------------------------------------------------------------------------------------
Version: 0.7.24
Date: 23.02.2023
Expand Down
3 changes: 2 additions & 1 deletion angelsbioprocessing/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"angelsrefining >= 0.12.1",
"angelspetrochem >= 0.9.25",
"angelssmelting >= 0.6.17",
"? bobenemies >= 1.1.5"
"? bobenemies >= 1.1.5",
"? boblibrary >= 1.2.0"
]
}
15 changes: 15 additions & 0 deletions angelsbioprocessing/prototypes/recipes/bio-module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@ data:extend({
result = "angels-bio-yield-module-3",
},
})

if mods["boblibrary"] then
for _, module_name in pairs({
"angels-bio-yield-module",
"angels-bio-yield-module-2",
"angels-bio-yield-module-3",
"angels-bio-yield-module-4",
"angels-bio-yield-module-5",
"angels-bio-yield-module-6",
"angels-bio-yield-module-7",
"angels-bio-yield-module-8"
}) do
bobmods.lib.module.exclude_productivity_module(module_name)
end
end

0 comments on commit 7fbf87e

Please sign in to comment.