Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master-1.19-lts' into master-1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed May 13, 2023
2 parents c20a902 + 611b312 commit 524467e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/changelog/1.18.2-1.1.2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.13.4 or higher.

Fixes:
* Fix rare crash with reusable ingredients, Closes #94

6 changes: 6 additions & 0 deletions resources/changelog/1.19.2-1.1.2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As always, don't forget to backup your world before updating!
Requires CyclopsCore version 1.17.0 or higher.

Fixes:
* Fix rare crash with reusable ingredients, Closes #94

Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ public static <T, M> List<T> getIngredientRecipeInputs(IIngredientComponentStora
long prototypeQuantity = matcher.getQuantity(inputPrototype.getPrototype());
if (inputReusable && extractionMemoryReusable.contains(inputPrototype.getPrototype())) {
// If the reusable item has been extracted before, mark as valid, and don't extract again.
inputInstance = inputPrototype.getComponent().getMatcher().getEmptyInstance();
hasInputInstance = true;
shouldBreak = true;
} else {
Expand Down Expand Up @@ -1097,6 +1098,7 @@ public static <T, M> List<T> getIngredientRecipeInputs(IIngredientComponentStora
if (inputReusable) {
extractionMemoryReusableBuffer.add(inputPrototype.getPrototype());
}
inputInstance = inputPrototype.getComponent().getMatcher().getEmptyInstance();
hasInputInstance = true;
shouldBreak = true;
}
Expand Down

0 comments on commit 524467e

Please sign in to comment.