Skip to content

Commit a2a5d91

Browse files
committed
Reapply BrewingStandBlockEntity patch
1 parent e011d14 commit a2a5d91

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

patches/net/minecraft/world/level/block/entity/BrewingStandBlockEntity.java.patch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
ItemStack ingredient = items.get(3);
99
PotionBrewing potionBrewing = level.potionBrewing();
1010

11-
@@ -181,8 +_,10 @@
11+
@@ -181,8 +_,12 @@
1212
items.set(dest, potionBrewing.mix(ingredient, items.get(dest)));
1313
}
1414

1515
+ net.neoforged.neoforge.event.EventHooks.onPotionBrewed(items);
16+
+ // Neo: Refresh local field to match any potential changes applied via brew event
17+
+ ingredient = items.get(INGREDIENT_SLOT);
1618
+ // Neo: Query the crafting remainder prior to stack mutation (shrink) in order to grab the correct value
1719
+ ItemStackTemplate remainder = ingredient.getCraftingRemainder();
1820
ingredient.shrink(1);

0 commit comments

Comments
 (0)