Paper/nms-patches/RecipiesShield.patch

19 lines
767 B
Diff
Raw Normal View History

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/RecipiesShield.java
+++ b/net/minecraft/server/RecipiesShield.java
2016-11-17 02:41:03 +01:00
@@ -9,9 +9,13 @@
craftingmanager.a(new RecipiesShield.Decoration(null));
}
2016-02-29 22:32:46 +01:00
- 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) {
2016-11-17 02:41:03 +01:00
ItemStack itemstack = ItemStack.a;