Skip to content

Commit 2a0149d

Browse files
Migration docs for #4211 (#4233)
1 parent cdba098 commit 2a0149d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/content/Modpacks/Changes/v7.4.0.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,18 @@ Added a type of ingredient to do more careful pattern matching on ItemStack NBT
1010

1111
## Balance sodium_bicarbonate_from_salt recipe
1212
Removed a salt sink in the recipe to produce sodium bicarbonate from salt, see [GTM PR 4228: Balance chemical titanium recipe](https://github.com/GregTechCEu/GregTech-Modern/pull/4228).
13+
14+
## ChanceLogic rolls in Custom Recipe Logic
15+
_This is only relevant to add-on mods with custom machine and recipe logic which overrides
16+
`RecipeRunner.fillContentMatchList()`, or otherwise directly call `ChanceLogic.roll()`._
17+
18+
The method signature of `ChanceLogic.roll()` was changed from
19+
20+
`roll(List<Content> chancedEntries, ChanceBoostFunction boostFunction, int recipeTier, int chanceTier, Object2IntMap<?> cache, int times)`
21+
22+
to
23+
24+
`roll(RecipeCapability<?> cap, List<Content> chancedEntries, ChanceBoostFunction boostFunction, int recipeTier, int chanceTier, Object2IntMap<?> cache, int times)`
25+
26+
(The chance roll function now also requires the RecipeCapability that is currently being processed to be passed in.)
27+

0 commit comments

Comments
 (0)