3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 15:40:51 +01:00
Paper/nms-patches/RecipeTippedArrow.patch

23 Zeilen
1.0 KiB
Diff

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 {
2019-04-23 12:00:00 +10:00
+public class RecipeTippedArrow extends ShapedRecipes { // 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
2019-04-23 12:00:00 +10:00
public boolean a(InventoryCrafting inventorycrafting, World world) {
if (inventorycrafting.g() == 3 && inventorycrafting.f() == 3) {