diff options
Diffstat (limited to 'nms-patches/RecipeTippedArrow.patch')
-rw-r--r-- | nms-patches/RecipeTippedArrow.patch | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nms-patches/RecipeTippedArrow.patch b/nms-patches/RecipeTippedArrow.patch index 5fa5a86d..8004c18e 100644 --- a/nms-patches/RecipeTippedArrow.patch +++ b/nms-patches/RecipeTippedArrow.patch @@ -1,18 +1,22 @@ --- a/net/minecraft/server/RecipeTippedArrow.java +++ b/net/minecraft/server/RecipeTippedArrow.java -@@ -2,11 +2,15 @@ +@@ -2,11 +2,19 @@ import java.util.Collection; -class RecipeTippedArrow implements IRecipe { -+class RecipeTippedArrow extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends ++class RecipeTippedArrow extends ShapedRecipes implements IRecipe { // CraftBukkit private static final ItemStack[] a = new ItemStack[9]; - RecipeTippedArrow() {} -+ // CraftBukkit start - Delegate to new parent class with bogus info -+ public RecipeTippedArrow() { -+ super(new ItemStack(Items.TIPPED_ARROW, 0, -1), java.util.Arrays.asList(new ItemStack(Items.ARROW, 8, 0), new ItemStack(Items.LINGERING_POTION, 0, 0))); ++ // 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 |