3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 13:00:06 +01:00
Paper/nms-patches/RecipesBannerInnerClass1.patch

18 Zeilen
844 B
Diff

--- ../work/decompile-bb26c12b/net/minecraft/server/RecipesBannerInnerClass1.java 2014-11-27 08:59:46.877421071 +1100
+++ src/main/java/net/minecraft/server/RecipesBannerInnerClass1.java 2014-11-27 08:42:10.084851043 +1100
@@ -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;