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.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/nms-patches/RecipeShulkerBox.patch b/nms-patches/RecipeShulkerBox.patch
new file mode 100644
index 00000000..7f602345
--- /dev/null
+++ b/nms-patches/RecipeShulkerBox.patch
@@ -0,0 +1,18 @@
+--- a/net/minecraft/server/RecipeShulkerBox.java
++++ b/net/minecraft/server/RecipeShulkerBox.java
+@@ -9,9 +9,13 @@
+ craftingmanager.a(new RecipeShulkerBox.Dye(null));
+ }
+
+- static class Dye implements IRecipe {
++ static class Dye extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
+
+- private Dye() {}
++ // 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)));
++ }
++ // CraftBukkit end
+
+ public boolean a(InventoryCrafting inventorycrafting, World world) {
+ int i = 0;