3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/RecipeTippedArrow.patch

25 Zeilen
1.0 KiB
Diff

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/RecipeTippedArrow.java
+++ b/net/minecraft/server/RecipeTippedArrow.java
2016-05-10 13:47:39 +02:00
@@ -3,11 +3,19 @@
2016-02-29 22:32:46 +01:00
import java.util.Collection;
2016-05-10 13:47:39 +02:00
import javax.annotation.Nullable;
2016-02-29 22:32:46 +01:00
-class RecipeTippedArrow implements IRecipe {
+class RecipeTippedArrow extends ShapedRecipes implements IRecipe { // CraftBukkit
2016-02-29 22:32:46 +01:00
private static final ItemStack[] a = new ItemStack[9];
- RecipeTippedArrow() {}
+ // 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));
2016-02-29 22:32:46 +01:00
+ }
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
if (inventorycrafting.i() == 3 && inventorycrafting.h() == 3) {