From ddf76db9b3bf66afe5c8df11678fd9a61906c7b9 Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 10 May 2024 14:55:38 -0700 Subject: [PATCH] Fix potion brewing having arguments reversed. Closes #9970 --- .../minecraft/world/item/alchemy/PotionBrewing.java.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/item/alchemy/PotionBrewing.java.patch b/patches/minecraft/net/minecraft/world/item/alchemy/PotionBrewing.java.patch index f85a3cd3e5..7bb31b4fa2 100644 --- a/patches/minecraft/net/minecraft/world/item/alchemy/PotionBrewing.java.patch +++ b/patches/minecraft/net/minecraft/world/item/alchemy/PotionBrewing.java.patch @@ -42,7 +42,7 @@ public boolean hasMix(ItemStack p_43509_, ItemStack p_43510_) { - return !this.isContainer(p_43509_) ? false : this.hasContainerMix(p_43509_, p_43510_) || this.hasPotionMix(p_43509_, p_43510_); -+ return !mix(p_43509_, p_43510_).isEmpty(); ++ return !mix(p_43510_, p_43509_).isEmpty(); } + /** @deprecated Forge: use hasMix(ItemStack, ItemStack)*/ @@ -61,11 +61,11 @@ } public ItemStack mix(ItemStack p_43530_, ItemStack p_43531_) { -+ if (p_43530_.isEmpty() || p_43530_.getCount() != 1) return ItemStack.EMPTY; -+ if (p_43531_.isEmpty()) return ItemStack.EMPTY; ++ if (p_43531_.isEmpty() || p_43531_.getCount() != 1) return ItemStack.EMPTY; ++ if (p_43530_.isEmpty()) return ItemStack.EMPTY; + + for (var recipe : recipes) { -+ ItemStack output = recipe.getOutput(p_43530_, p_43531_); ++ ItemStack output = recipe.getOutput(p_43531_, p_43530_); + if (!output.isEmpty()) { + return output; + }