aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-08-25 20:58:00 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-08-25 20:58:00 +0800
commitb960e33306056c126c3816ec471c58c3b5a7be7f (patch)
treeb0ac4730b813a6a0004250cd50e0cabd1eb3f18e /src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java
parentc980df4f05485ef2a1adb768087bb95eeeadcfca (diff)
downloadRoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.tar.gz
RoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.tar.bz2
RoughlyEnoughItems-b960e33306056c126c3816ec471c58c3b5a7be7f.zip
Updated on Cloth, support for 1.15
Diffstat (limited to 'src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java')
-rw-r--r--src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java b/src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java
index 97d08dd66..f877f3481 100644
--- a/src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java
+++ b/src/main/java/me/shedaniel/rei/server/InputSlotCrafter.java
@@ -104,9 +104,9 @@ public class InputSlotCrafter<C extends Inventory> implements RecipeGridAligner<
}
@SuppressWarnings("deprecation")
- protected void fillInputSlots(RecipeFinder recipeFinder, DefaultedList<Ingredient> ingredients, boolean boolean_1) {
+ protected void fillInputSlots(RecipeFinder recipeFinder, DefaultedList<Ingredient> ingredients, boolean hasShift) {
// boolean boolean_2 = this.craftingContainer.matches(recipe_1);
- boolean boolean_2 = true;
+ boolean boolean_2 = false;
int int_1 = recipeFinder.countRecipeCrafts(ingredients, (IntList) null);
int int_2;
if (boolean_2) {
@@ -120,7 +120,7 @@ public class InputSlotCrafter<C extends Inventory> implements RecipeGridAligner<
}
}
- int_2 = this.getAmountToFill(boolean_1, int_1, boolean_2);
+ int_2 = this.getAmountToFill(hasShift, int_1, boolean_2);
IntList intList_1 = new IntArrayList();
if (recipeFinder.findRecipe(ingredients, intList_1, int_2)) {
int int_4 = int_2;
@@ -142,9 +142,9 @@ public class InputSlotCrafter<C extends Inventory> implements RecipeGridAligner<
}
- protected int getAmountToFill(boolean boolean_1, int int_1, boolean boolean_2) {
+ protected int getAmountToFill(boolean hasShift, int int_1, boolean boolean_2) {
int int_2 = 1;
- if (boolean_1) {
+ if (hasShift) {
int_2 = int_1;
} else if (boolean_2) {
int_2 = 64;