summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipeFireworks.patch
blob: da6e1e295f3f2aba75495d514b87bb97795e3768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ../work/decompile-8eb82bde//net/minecraft/server/RecipeFireworks.java	2014-11-28 11:22:56.170823158 +0000
+++ src/main/java/net/minecraft/server/RecipeFireworks.java	2014-11-28 11:01:54.000000000 +0000
@@ -3,11 +3,15 @@
 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;
-
-    public RecipeFireworks() {}
+    
+    // CraftBukkit start - Delegate to new parent class with bogus info
+    public RecipeFireworks() {
+        super(new ItemStack(Items.FIREWORKS, 0, 0), java.util.Arrays.asList(new ItemStack(Items.GUNPOWDER, 0, 5)));
+    }
+    // CraftBukkit end
 
     public boolean a(InventoryCrafting inventorycrafting, World world) {
         this.a = null;