diff options
Diffstat (limited to 'nms-patches/RecipiesShield.patch')
-rw-r--r-- | nms-patches/RecipiesShield.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nms-patches/RecipiesShield.patch b/nms-patches/RecipiesShield.patch new file mode 100644 index 00000000..d1ef9efe --- /dev/null +++ b/nms-patches/RecipiesShield.patch @@ -0,0 +1,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; |