mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 04:47:36 +01:00
18 lines
734 B
Diff
18 lines
734 B
Diff
--- a/net/minecraft/server/RecipiesShield.java
|
|
+++ b/net/minecraft/server/RecipiesShield.java
|
|
@@ -1,10 +1,12 @@
|
|
package net.minecraft.server;
|
|
|
|
-public class RecipiesShield extends IRecipeComplex {
|
|
+public class RecipiesShield extends ShapelessRecipes { // CraftBukkit - added extends
|
|
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
|
public RecipiesShield(MinecraftKey minecraftkey) {
|
|
- super(minecraftkey);
|
|
+ super(minecraftkey, "", new ItemStack(Items.SHIELD), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.WHITE_BANNER)));
|
|
}
|
|
+ // CraftBukkit end
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
ItemStack itemstack = ItemStack.a;
|