mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 19:56:52 +01:00
21 lines
842 B
Diff
21 lines
842 B
Diff
|
--- a/net/minecraft/server/RecipeTippedArrow.java
|
||
|
+++ b/net/minecraft/server/RecipeTippedArrow.java
|
||
|
@@ -2,11 +2,15 @@
|
||
|
|
||
|
import java.util.Collection;
|
||
|
|
||
|
-class RecipeTippedArrow implements IRecipe {
|
||
|
+class RecipeTippedArrow extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
||
|
|
||
|
private static final ItemStack[] a = new ItemStack[9];
|
||
|
|
||
|
- RecipeTippedArrow() {}
|
||
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
||
|
+ public RecipeTippedArrow() {
|
||
|
+ super(new ItemStack(Items.TIPPED_ARROW, 0, -1), java.util.Arrays.asList(new ItemStack(Items.ARROW, 8, 0), new ItemStack(Items.LINGERING_POTION, 0, 0)));
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
|
||
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
||
|
if (inventorycrafting.i() == 3 && inventorycrafting.h() == 3) {
|