mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
@@ -4,8 +4,8 @@
|
||||
import com.google.common.collect.Lists;
|
||||
import java.util.ArrayList;
|
||||
|
||||
-public class RecipeRepair extends IRecipe {
|
||||
+public class RecipeRepair extends ShapelessRecipes { // CraftBukkit
|
||||
-public class RecipeRepair implements IRecipe {
|
||||
+public class RecipeRepair extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
||||
|
||||
- public RecipeRepair() {}
|
||||
+ // CraftBukkit start - Delegate to new parent class
|
||||
@@ -26,7 +26,7 @@
|
||||
+ NonNullList<RecipeItemStack> ingredients = NonNullList.a();
|
||||
+ ingredients.add(RecipeItemStack.a(new ItemStack[]{itemstack2.cloneItemStack()}));
|
||||
+ ingredients.add(RecipeItemStack.a(new ItemStack[]{itemstack.cloneItemStack()}));
|
||||
+ ShapelessRecipes recipe = new ShapelessRecipes(this.a, result.cloneItemStack(), ingredients);
|
||||
+ ShapelessRecipes recipe = new ShapelessRecipes("", result.cloneItemStack(), ingredients);
|
||||
+ recipe.key = new MinecraftKey("repairitem");
|
||||
+ inventorycrafting.currentRecipe = recipe;
|
||||
+ result = org.bukkit.craftbukkit.event.CraftEventFactory.callPreCraftEvent(inventorycrafting, result, inventorycrafting.container.getBukkitView(), true);
|
||||
|
Reference in New Issue
Block a user