Add back missing hunk in AbstractFurnaceBlockEntity

This commit is contained in:
Nassim Jahnke 2024-12-18 12:36:30 +01:00
parent c4fd69c807
commit a5e786a578
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 10 additions and 3 deletions

View File

@ -229,7 +229,7 @@
player.awardRecipes(recipesToAwardAndPopExperience);
for (RecipeHolder<?> recipeHolder : recipesToAwardAndPopExperience) {
@@ -356,26 +_,52 @@
@@ -356,30 +_,60 @@
}
public List<RecipeHolder<?>> getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 popVec) {
@ -285,3 +285,11 @@
}
@Override
public void fillStackedContents(StackedItemContents stackedContents) {
+ // Paper start - don't account fuel stack (fixes MC-243057)
+ stackedContents.accountStack(this.items.get(SLOT_INPUT));
+ stackedContents.accountStack(this.items.get(SLOT_RESULT));
+ // Paper end - don't account fuel stack (fixes MC-243057)
for (ItemStack itemStack : this.items) {
stackedContents.accountStack(itemStack);
}

View File

@ -166,9 +166,8 @@
return potionBrewing.isIngredient(stack);
} else {
return index == 4
- ? stack.is(ItemTags.BREWING_FUEL)
? stack.is(ItemTags.BREWING_FUEL)
- : (stack.is(Items.POTION) || stack.is(Items.SPLASH_POTION) || stack.is(Items.LINGERING_POTION) || stack.is(Items.GLASS_BOTTLE))
+ ? stack.is(net.minecraft.tags.ItemTags.BREWING_FUEL)
+ : (stack.is(Items.POTION) || stack.is(Items.SPLASH_POTION) || stack.is(Items.LINGERING_POTION) || stack.is(Items.GLASS_BOTTLE) || potionBrewing.isCustomInput(stack)) // Paper - Custom Potion Mixes
&& this.getItem(index).isEmpty();
}