PaperMC/paper-server/nms-patches/RecipiesShield.patch
CraftBukkit/Spigot 4e412ab4e3 Update to Minecraft 1.11
By: md_5 <git@md-5.net>
2016-11-17 12:41:03 +11:00

18 lines
767 B
Diff

--- a/net/minecraft/server/RecipiesShield.java
+++ b/net/minecraft/server/RecipiesShield.java
@@ -9,9 +9,13 @@
craftingmanager.a(new RecipiesShield.Decoration(null));
}
- 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 = ItemStack.a;