summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipeBannerAdd.patch
blob: 372051982b17732920f7323748fb5ca87ff81578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/net/minecraft/server/RecipeBannerAdd.java
+++ b/net/minecraft/server/RecipeBannerAdd.java
@@ -2,11 +2,13 @@
 
 import javax.annotation.Nullable;
 
-public class RecipeBannerAdd extends IRecipeComplex {
+public class RecipeBannerAdd extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
 
+    // CraftBukkit start - Delegate to new parent class with bogus info
     public RecipeBannerAdd(MinecraftKey minecraftkey) {
-        super(minecraftkey);
+        super(minecraftkey, "", new ItemStack(Items.WHITE_BANNER, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.WHITE_BANNER)));
     }
+    // CraftBukkit end
 
     public boolean a(IInventory iinventory, World world) {
         if (!(iinventory instanceof InventoryCrafting)) {