summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipiesShield.patch
blob: d1ef9efe59207c59482728a2555926767e41e2ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/net/minecraft/server/RecipiesShield.java
+++ b/net/minecraft/server/RecipiesShield.java
@@ -11,9 +11,13 @@
 
     static class SyntheticClass_1 {    }
 
-    static class Decoration implements IRecipe {
+    static class Decoration extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
 
-        private Decoration() {}
+        // CraftBukkit start - Delegate to new parent class with bogus info
+        private Decoration() {
+            super(new ItemStack(Items.SHIELD, 0 ,0), java.util.Arrays.asList(new ItemStack(Items.BANNER, 0, 0)));
+        }
+        // CraftBukkit end
 
         public boolean a(InventoryCrafting inventorycrafting, World world) {
             ItemStack itemstack = null;