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