PaperMC/nms-patches/RecipeFireworksFade.patch

21 lines
893 B
Diff
Raw Normal View History

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/RecipeFireworksFade.java
+++ b/net/minecraft/server/RecipeFireworksFade.java
2018-12-25 22:00:00 +01:00
@@ -3,13 +3,15 @@
import com.google.common.collect.Lists;
2018-07-15 02:00:00 +02:00
import java.util.List;
-public class RecipeFireworksFade extends IRecipeComplex {
2019-04-23 04:00:00 +02:00
+public class RecipeFireworksFade extends ShapelessRecipes { // CraftBukkit - added extends
2018-07-15 02:00:00 +02:00
2018-12-06 00:00:00 +01:00
private static final RecipeItemStack a = RecipeItemStack.a(Items.FIREWORK_STAR);
2018-07-15 02:00:00 +02:00
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeFireworksFade(MinecraftKey minecraftkey) {
- super(minecraftkey);
+ super(minecraftkey, "", new ItemStack(Items.FIREWORK_STAR), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.FIREWORK_STAR, Items.BONE_MEAL)));
2018-07-15 02:00:00 +02:00
}
+ // CraftBukkit end
2019-04-23 04:00:00 +02:00
public boolean a(InventoryCrafting inventorycrafting, World world) {
boolean flag = false;