Paper/nms-patches/RecipeTippedArrow.patch

23 Zeilen
988 B
Diff

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/RecipeTippedArrow.java
+++ b/net/minecraft/server/RecipeTippedArrow.java
2016-11-17 02:41:03 +01:00
@@ -2,9 +2,17 @@
2016-02-29 22:32:46 +01:00
2016-11-17 02:41:03 +01:00
import java.util.Collection;
2016-02-29 22:32:46 +01:00
2016-11-17 02:41:03 +01:00
-public class RecipeTippedArrow implements IRecipe {
+public class RecipeTippedArrow extends ShapedRecipes implements IRecipe { // CraftBukkit
2016-02-29 22:32:46 +01:00
2016-11-17 02:41:03 +01:00
- public RecipeTippedArrow() {}
+ // CraftBukkit start
2016-11-17 02:41:03 +01:00
+ 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));
2016-02-29 22:32:46 +01:00
+ }
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
2016-11-17 02:41:03 +01:00
if (inventorycrafting.j() == 3 && inventorycrafting.i() == 3) {