Paper/nms-patches/RecipeTippedArrow.patch
2016-11-17 12:41:03 +11:00

23 lines
988 B
Diff

--- a/net/minecraft/server/RecipeTippedArrow.java
+++ b/net/minecraft/server/RecipeTippedArrow.java
@@ -2,9 +2,17 @@
import java.util.Collection;
-public class RecipeTippedArrow implements IRecipe {
+public class RecipeTippedArrow extends ShapedRecipes implements IRecipe { // CraftBukkit
- public RecipeTippedArrow() {}
+ // CraftBukkit start
+ public 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.j() == 3 && inventorycrafting.i() == 3) {