Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ public void update() {
if (this.materialStack.isEmpty()) {
this.materialStack = input.copy();
mark = true;
//Retrieve new recipe upon non-null item detected
recipe = getRecipe();
}

// Retrieve the recipe after checking if the input is not empty, run every update cycle
recipe = this.getRecipe();

if (!this.inputLimit || (recipe != null && this.materialCount < recipe.getInputCount())) {
if (StackHelper.areStacksEqual(input, this.materialStack)) {
int consumeAmount = input.getCount();
Expand All @@ -88,7 +89,6 @@ public void update() {
//Invalidate the cached item and marked state on unsuccessful recipe retrieval
else if(mark) {
this.materialStack = ItemStack.EMPTY;
mark = false;
}
}

Expand Down