PaperMC/paper-server/nms-patches/RecipesBannerInnerClass1.patch
CraftBukkit/Spigot a8ddf37419 Remove patch headers
By: GunfighterJ <joseph.jenniges@gmail.com>
2014-11-28 16:54:14 -06:00

15 lines
621 B
Diff

@@ -1,8 +1,12 @@
package net.minecraft.server;
-class RecipesBannerInnerClass1 implements IRecipe {
+class RecipesBannerInnerClass1 extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
- private RecipesBannerInnerClass1() {}
+ // CraftBukkit start - Delegate to new parent class with bogus info
+ private RecipesBannerInnerClass1() {
+ super(new ItemStack(Items.BANNER, 0, 0), java.util.Arrays.asList(new ItemStack(Items.BANNER)));
+ }
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
ItemStack itemstack = null;