2023-06-21 15:11:50 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Redned <redned235@gmail.com>
|
|
|
|
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
|
2024-04-12 21:14:06 +02:00
|
|
|
index 54da7997123b4159a29baedf402608b7db7cb745..a86507569b759f8ef85f3fc32324677c37f65d28 100644
|
2023-06-21 15:11:50 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java
|
2024-04-12 21:14:06 +02:00
|
|
|
@@ -80,7 +80,7 @@ public class FireworkRocketRecipe extends CustomRecipe {
|
2023-06-21 15:11:50 +02:00
|
|
|
|
|
|
|
@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
|