mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-14 22:55:43 +01:00
18 lines
722 B
Diff
18 lines
722 B
Diff
--- a/net/minecraft/server/RecipeBookClone.java
|
|
+++ b/net/minecraft/server/RecipeBookClone.java
|
|
@@ -1,10 +1,12 @@
|
|
package net.minecraft.server;
|
|
|
|
-public class RecipeBookClone extends IRecipeComplex {
|
|
+public class RecipeBookClone extends ShapelessRecipes { // CraftBukkit - added extends
|
|
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
|
public RecipeBookClone(MinecraftKey minecraftkey) {
|
|
- super(minecraftkey);
|
|
+ super(minecraftkey, "", new ItemStack(Items.WRITTEN_BOOK), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.WRITABLE_BOOK)));
|
|
}
|
|
+ // CraftBukkit end
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
int i = 0;
|