aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-11-06 21:40:11 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-11-06 21:40:15 +0800
commit0cc101e5cb57e62674abe421983444f79ea630fc (patch)
treeb3d1c4c1853a3e9d60ae2857e7aa1b5430f2f559 /src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java
parentd26cb24ffffc1e6063a2dd1053ccbc886c60767f (diff)
downloadRoughlyEnoughItems-0cc101e5cb57e62674abe421983444f79ea630fc.tar.gz
RoughlyEnoughItems-0cc101e5cb57e62674abe421983444f79ea630fc.tar.bz2
RoughlyEnoughItems-0cc101e5cb57e62674abe421983444f79ea630fc.zip
3.2.6
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java
index 5516c0560..21ca07b14 100644
--- a/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java
+++ b/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java
@@ -11,7 +11,6 @@ import me.shedaniel.rei.api.RecipeDisplay;
import me.shedaniel.rei.plugin.DefaultPlugin;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.item.ItemStack;
-import net.minecraft.item.PotionItem;
import net.minecraft.recipe.Ingredient;
import net.minecraft.util.Formatting;
import net.minecraft.util.Identifier;
@@ -27,19 +26,13 @@ public class DefaultBrewingDisplay implements RecipeDisplay {
public DefaultBrewingDisplay(ItemStack input, Ingredient reactant, ItemStack output) {
this.input = EntryStack.create(input).setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, stack -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.brewing.input")));
- if (this.input.getItem() instanceof PotionItem)
- this.input = this.input.setting(EntryStack.Settings.CHECK_TAGS, EntryStack.Settings.TRUE);
this.reactant = new ArrayList<>();
for (ItemStack stack : reactant.getMatchingStacksClient()) {
EntryStack entryStack = EntryStack.create(stack);
- if (stack.getItem() instanceof PotionItem)
- entryStack.setting(EntryStack.Settings.CHECK_TAGS, EntryStack.Settings.TRUE);
entryStack.setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, s -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.brewing.reactant")));
this.reactant.add(entryStack);
}
this.output = EntryStack.create(output).setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, stack -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.brewing.result")));
- if (this.output.getItem() instanceof PotionItem)
- this.output = this.output.setting(EntryStack.Settings.CHECK_TAGS, EntryStack.Settings.TRUE);
}
@Override