13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/RecipeTippedArrow.patch
CraftBukkit/Spigot ea6ca4328a Update to Minecraft 1.12-pre6
By: md_5 <git@md-5.net>
2017-05-30 21:25:59 +10:00

23 Zeilen
1.0 KiB
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, 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) {