mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
21 lines
811 B
Diff
21 lines
811 B
Diff
--- a/net/minecraft/server/RecipiesShield.java
|
|
+++ b/net/minecraft/server/RecipiesShield.java
|
|
@@ -1,8 +1,15 @@
|
|
package net.minecraft.server;
|
|
|
|
-public class RecipiesShield { public static class Decoration extends IRecipe {
|
|
+// CraftBukkit - decompile weirdness
|
|
+public class RecipiesShield {
|
|
|
|
- public Decoration() {}
|
|
+ public static class Decoration extends ShapelessRecipes { // CraftBukkit
|
|
+
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
|
+ public Decoration() {
|
|
+ super("", new ItemStack(Items.SHIELD, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.BANNER)));
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
ItemStack itemstack = ItemStack.a;
|