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

19 Zeilen
774 B
Diff

--- a/net/minecraft/server/RecipeBannerAdd.java
+++ b/net/minecraft/server/RecipeBannerAdd.java
@@ -2,11 +2,13 @@
import javax.annotation.Nullable;
-public class RecipeBannerAdd extends IRecipeComplex {
+public class RecipeBannerAdd extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeBannerAdd(MinecraftKey minecraftkey) {
- super(minecraftkey);
+ super(minecraftkey, "", new ItemStack(Items.WHITE_BANNER, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.WHITE_BANNER)));
}
+ // CraftBukkit end
public boolean a(IInventory iinventory, World world) {
if (!(iinventory instanceof InventoryCrafting)) {