Fix brewing stand input placement not auto-splitting stackable potions. (#8534)

This commit is contained in:
ChampionAsh5357 authored and GitHub committed 2022-03-30 12:56:46 -07:00
1 parent e5d4e5d3ab
commit 10ca83e90d
2 files changed
+9 -2

No files matched your search

@@ -1,5 +1,14 @@
--- a/net/minecraft/world/inventory/BrewingStandMenu.java
+++ b/net/minecraft/world/inventory/BrewingStandMenu.java
@@ -75,7 +_,7 @@
if (!this.m_38903_(itemstack1, 3, 4, false)) {
return ItemStack.f_41583_;
}
- } else if (BrewingStandMenu.PotionSlot.m_39133_(itemstack) && itemstack.m_41613_() == 1) {
+ } else if (BrewingStandMenu.PotionSlot.m_39133_(itemstack)) {
if (!this.m_38903_(itemstack1, 0, 3, false)) {
return ItemStack.f_41583_;
}
@@ -146,7 +_,7 @@
}
@@ -137,8 +137,6 @@ public class BrewingRecipeRegistry {
*/
public static boolean isValidInput(ItemStack stack)
{
if (stack.getCount() != 1) return false;
for (IBrewingRecipe recipe : recipes)
{
if (recipe.isInput(stack))