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 {
|
2017-05-30 13:25:59 +02:00
|
|
|
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // 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);
|
|
|
|
+ super(minecraftkey, "", new ItemStack(Items.FIREWORK_ROCKET, 0), 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
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public boolean a(IInventory iinventory, World world) {
|
|
|
|
if (!(iinventory instanceof InventoryCrafting)) {
|