mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 10:35:38 +01:00
dc684c60d1
The new behavior of disconnect to block the current thread until the disconnect succeeded is better than throwing it off to happen at some point
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
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
|
|
index e2a3a4fc2fff21b926a74ed11389333165180fe7..93c2268ea1be1727c2939d5730427e24d4e03e2f 100644
|
|
--- a/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java
|
|
+++ b/src/main/java/net/minecraft/world/item/crafting/FireworkRocketRecipe.java
|
|
@@ -77,7 +77,7 @@ public class FireworkRocketRecipe extends CustomRecipe {
|
|
|
|
@Override
|
|
public ItemStack getResultItem(HolderLookup.Provider registriesLookup) {
|
|
- return new ItemStack(Items.FIREWORK_ROCKET);
|
|
+ return new ItemStack(Items.FIREWORK_ROCKET, 3); // Paper - Fix incorrect crafting result amount
|
|
}
|
|
|
|
@Override
|