summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipeShulkerBox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/RecipeShulkerBox.patch')
-rw-r--r--nms-patches/RecipeShulkerBox.patch16
1 files changed, 9 insertions, 7 deletions
diff --git a/nms-patches/RecipeShulkerBox.patch b/nms-patches/RecipeShulkerBox.patch
index 7f602345..e38557c7 100644
--- a/nms-patches/RecipeShulkerBox.patch
+++ b/nms-patches/RecipeShulkerBox.patch
@@ -1,16 +1,18 @@
--- a/net/minecraft/server/RecipeShulkerBox.java
+++ b/net/minecraft/server/RecipeShulkerBox.java
-@@ -9,9 +9,13 @@
- craftingmanager.a(new RecipeShulkerBox.Dye(null));
- }
+@@ -1,8 +1,15 @@
+ package net.minecraft.server;
-- static class Dye implements IRecipe {
-+ static class Dye extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
+-public class RecipeShulkerBox { public static class Dye extends IRecipe {
++// CraftBukkit - decompile weirdness
++public class RecipeShulkerBox {
-- private Dye() {}
+- public Dye() {}
++ public static class Dye extends ShapelessRecipes { // CraftBukkit
++
+ // CraftBukkit start - Delegate to new parent class with bogus info
+ public Dye() {
-+ super(new ItemStack(Blocks.WHITE_SHULKER_BOX, 0, 0), java.util.Arrays.asList(new ItemStack(Items.DYE, 0, 5)));
++ super("", new ItemStack(Blocks.WHITE_SHULKER_BOX, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.DYE)));
+ }
+ // CraftBukkit end