2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/RecipeFireworks.java
|
|
|
|
+++ b/net/minecraft/server/RecipeFireworks.java
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -3,13 +3,16 @@
|
|
|
|
import com.google.common.collect.Lists;
|
2014-11-25 22:32:16 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
-public class RecipeFireworks implements IRecipe {
|
|
|
|
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
|
|
|
|
|
|
|
private ItemStack a;
|
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
|
2016-11-17 02:41:03 +01:00
|
|
|
public RecipeFireworks() {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ super(new ItemStack(Items.FIREWORKS, 0, 0), java.util.Arrays.asList(new ItemStack(Items.GUNPOWDER, 0, 5)));
|
2016-11-17 02:41:03 +01:00
|
|
|
this.a = ItemStack.a;
|
|
|
|
}
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit end
|
|
|
|
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
2016-11-17 02:41:03 +01:00
|
|
|
this.a = ItemStack.a;
|