PaperMC/nms-patches/RecipeTippedArrow.patch

23 lines
1 KiB
Diff
Raw Normal View History

2016-03-01 08:32:46 +11:00
--- a/net/minecraft/server/RecipeTippedArrow.java
+++ b/net/minecraft/server/RecipeTippedArrow.java
2018-07-15 10:00:00 +10:00
@@ -2,11 +2,17 @@
2016-03-01 08:32:46 +11:00
2016-11-17 12:41:03 +11:00
import java.util.Collection;
2016-03-01 08:32:46 +11:00
2018-07-15 10:00:00 +10:00
-public class RecipeTippedArrow extends IRecipeComplex {
2017-05-30 21:25:59 +10:00
+public class RecipeTippedArrow extends ShapedRecipes implements IRecipe { // CraftBukkit
2016-03-01 08:32:46 +11:00
+ // CraftBukkit start
2018-07-15 10:00:00 +10:00
public RecipeTippedArrow(MinecraftKey minecraftkey) {
- super(minecraftkey);
+ super(minecraftkey, "", 3, 3, NonNullList.a(RecipeItemStack.a,
2017-05-14 12:00:00 +10:00
+ 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));
2018-07-15 10:00:00 +10:00
}
2016-03-01 08:32:46 +11:00
+ // CraftBukkit end
2018-07-15 10:00:00 +10:00
public boolean a(IInventory iinventory, World world) {
if (iinventory.U_() == 3 && iinventory.n() == 3) {