summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipeShulkerBox.patch
blob: f3eab88bd6ece5f158c3a943fc84d6d92a2641c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/net/minecraft/server/RecipeShulkerBox.java
+++ b/net/minecraft/server/RecipeShulkerBox.java
@@ -1,8 +1,15 @@
 package net.minecraft.server;
 
-public class RecipeShulkerBox {    public static class Dye implements IRecipe {
+// CraftBukkit - decompile weirdness
+public class RecipeShulkerBox {
 
-        public Dye() {}
+    public static class Dye extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
+
+        // CraftBukkit start - Delegate to new parent class with bogus info
+        public Dye() {
+            super("", new ItemStack(Blocks.WHITE_SHULKER_BOX, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.DYE)));
+        }
+        // CraftBukkit end
 
         public boolean a(InventoryCrafting inventorycrafting, World world) {
             int i = 0;