mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
21 lines
776 B
Diff
21 lines
776 B
Diff
--- a/net/minecraft/server/RecipeFireworks.java
|
|
+++ b/net/minecraft/server/RecipeFireworks.java
|
|
@@ -3,13 +3,16 @@
|
|
import com.google.common.collect.Lists;
|
|
import java.util.ArrayList;
|
|
|
|
-public class RecipeFireworks implements IRecipe {
|
|
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
|
|
|
private ItemStack a;
|
|
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
|
public RecipeFireworks() {
|
|
+ super("", new ItemStack(Items.FIREWORKS, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
|
|
this.a = ItemStack.a;
|
|
}
|
|
+ // CraftBukkit end
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
this.a = ItemStack.a;
|