diff --git a/patches/server/Fix-incorrect-crafting-result-amount-for-fireworks.patch b/patches/server/Fix-incorrect-crafting-result-amount-for-fireworks.patch new file mode 100644 index 0000000000..12d47a0483 --- /dev/null +++ b/patches/server/Fix-incorrect-crafting-result-amount-for-fireworks.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Redned +Date: Mon, 12 Jun 2023 11:54:12 -0500 +Subject: [PATCH] Fix incorrect crafting result amount for fireworks + +Although vanilla does not specifically call this method anywhere, this fixes a bug where the result using the Bukkit API returns the wrong amount. + +diff --git a/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java b/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java ++++ b/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java +@@ -0,0 +0,0 @@ public class FireworkRocketRecipe extends CustomRecipe { + + @Override + public ItemStack getResultItem(RegistryAccess registryManager) { +- return new ItemStack(Items.FIREWORK_ROCKET); ++ return new ItemStack(Items.FIREWORK_ROCKET, 3); // Paper - Fix incorrect crafting result amount + } + + @Override