From c0c39a160da9aa64cc8ca70c2bd7a91951b7c118 Mon Sep 17 00:00:00 2001 From: GlodBlock <1356392126@qq.com> Date: Mon, 31 Jul 2023 18:28:22 +0800 Subject: [PATCH] fix size check --- .../glodblock/github/integration/jei/RecipeTransferBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glodblock/github/integration/jei/RecipeTransferBuilder.java b/src/main/java/com/glodblock/github/integration/jei/RecipeTransferBuilder.java index 783440e57..cd6e9a837 100644 --- a/src/main/java/com/glodblock/github/integration/jei/RecipeTransferBuilder.java +++ b/src/main/java/com/glodblock/github/integration/jei/RecipeTransferBuilder.java @@ -106,7 +106,7 @@ private void setFluidIn(int offset) { } private void setOutputs() { - for (int index = 0; index < this.out.size(); index ++) { + for (int index = 0; index < this.itemOut.size() + this.fluidOut.size(); index ++) { if (index < this.itemOut.size()) { this.out.add(this.itemOut.get(index)); } else if (index - this.itemOut.size() < this.fluidOut.size()) {