summaryrefslogtreecommitdiffstats
path: root/nms-patches/RecipeTippedArrow.patch
blob: 79e4312d3f6c42e8d87e0c59ab674df068506fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/net/minecraft/server/RecipeTippedArrow.java
+++ b/net/minecraft/server/RecipeTippedArrow.java
@@ -2,9 +2,17 @@
 
 import java.util.Collection;
 
-public class RecipeTippedArrow extends IRecipe {
+public class RecipeTippedArrow extends ShapedRecipes { // CraftBukkit
 
-    public RecipeTippedArrow() {}
+    // CraftBukkit start
+    public RecipeTippedArrow() {
+        super("", 3, 3, NonNullList.a(RecipeItemStack.a,
+                RecipeItemStack.a(Items.ARROW), RecipeItemStack.a(Items.ARROW), RecipeItemStack.a(Items.ARROW),
+                RecipeItemStack.a(Items.ARROW), RecipeItemStack.a(Items.LINGERING_POTION), RecipeItemStack.a(Items.ARROW),
+                RecipeItemStack.a(Items.ARROW), RecipeItemStack.a(Items.ARROW), RecipeItemStack.a(Items.ARROW)),
+                new ItemStack(Items.TIPPED_ARROW, 8));
+    }
+    // CraftBukkit end
 
     public boolean a(InventoryCrafting inventorycrafting, World world) {
         if (inventorycrafting.j() == 3 && inventorycrafting.i() == 3) {