diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-26 20:51:01 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-26 20:51:01 +0800 |
| commit | 431cfdf77ba306f5e147c7b2d70e15c4b3c729a6 (patch) | |
| tree | 4528e5482bc1360e02df0e766c254477288ecdbf /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | |
| parent | 281a472337c9510f2c13d5eef61a3889b1794ea0 (diff) | |
| download | RoughlyEnoughItems-431cfdf77ba306f5e147c7b2d70e15c4b3c729a6.tar.gz RoughlyEnoughItems-431cfdf77ba306f5e147c7b2d70e15c4b3c729a6.tar.bz2 RoughlyEnoughItems-431cfdf77ba306f5e147c7b2d70e15c4b3c729a6.zip | |
Update mappings to 1.14.3
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java index 410a1cdcf..49c17245f 100644 --- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java @@ -17,7 +17,6 @@ import net.minecraft.util.ActionResult; import net.minecraft.util.Identifier; import java.awt.*; -import java.util.List; import java.util.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; @@ -66,7 +65,7 @@ public class RecipeHelperImpl implements RecipeHelper { boolean slotDone = false; for(ItemStack possibleType : inventoryItems) { for(ItemStack slotPossible : slot) - if (ItemStack.areEqualIgnoreTags(slotPossible, possibleType)) { + if (ItemStack.areItemsEqualIgnoreDamage(slotPossible, possibleType)) { slotsCraftable++; slotDone = true; break; @@ -126,7 +125,7 @@ public class RecipeHelperImpl implements RecipeHelper { RecipeCategory category = getCategory(entry.getKey()); for(RecipeDisplay recipeDisplay : entry.getValue()) for(ItemStack outputStack : (List<ItemStack>) recipeDisplay.getOutput()) - if (category.checkTags() ? ItemStack.areEqual(stack, outputStack) : ItemStack.areEqualIgnoreTags(stack, outputStack)) + if (category.checkTags() ? ItemStack.areEqualIgnoreDamage(stack, outputStack) : ItemStack.areItemsEqualIgnoreDamage(stack, outputStack)) categoriesMap.get(recipeDisplay.getRecipeCategory()).add(recipeDisplay); } for(LiveRecipeGenerator liveRecipeGenerator : liveRecipeGenerators) @@ -162,7 +161,7 @@ public class RecipeHelperImpl implements RecipeHelper { boolean found = false; for(List<ItemStack> input : (List<List<ItemStack>>) recipeDisplay.getInput()) { for(ItemStack itemStack : input) { - if (category.checkTags() ? ItemStack.areEqual(itemStack, stack) : ItemStack.areEqualIgnoreTags(itemStack, stack)) { + if (category.checkTags() ? ItemStack.areEqualIgnoreDamage(itemStack, stack) : ItemStack.areItemsEqualIgnoreDamage(itemStack, stack)) { categoriesMap.get(recipeDisplay.getRecipeCategory()).add(recipeDisplay); found = true; break; |
