2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/RecipeFireworks.java
|
|
|
|
+++ b/net/minecraft/server/RecipeFireworks.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -1,14 +1,16 @@
|
|
|
|
package net.minecraft.server;
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
-public class RecipeFireworks extends IRecipeComplex {
|
2019-04-23 04:00:00 +02:00
|
|
|
+public class RecipeFireworks extends ShapelessRecipes { // CraftBukkit - added extends
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2018-12-06 00:00:00 +01:00
|
|
|
private static final RecipeItemStack a = RecipeItemStack.a(Items.PAPER);
|
|
|
|
private static final RecipeItemStack b = RecipeItemStack.a(Items.GUNPOWDER);
|
|
|
|
private static final RecipeItemStack c = RecipeItemStack.a(Items.FIREWORK_STAR);
|
2015-02-26 23:41:06 +01:00
|
|
|
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
2018-07-15 02:00:00 +02:00
|
|
|
public RecipeFireworks(MinecraftKey minecraftkey) {
|
|
|
|
- super(minecraftkey);
|
2019-05-03 09:41:23 +02:00
|
|
|
+ super(minecraftkey, "", new ItemStack(Items.FIREWORK_ROCKET, 3), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
|
2016-11-17 02:41:03 +01:00
|
|
|
}
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit end
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
|
|
boolean flag = false;
|