2015-05-25 18:37:24 +08:00
|
|
|
--- a/net/minecraft/server/RecipeFireworks.java
|
|
|
|
+++ b/net/minecraft/server/RecipeFireworks.java
|
2016-05-10 19:47:39 +08:00
|
|
|
@@ -4,11 +4,15 @@
|
2014-11-26 05:32:16 +08:00
|
|
|
import java.util.ArrayList;
|
2016-05-10 19:47:39 +08:00
|
|
|
import javax.annotation.Nullable;
|
2014-11-26 05:32:16 +08:00
|
|
|
|
|
|
|
-public class RecipeFireworks implements IRecipe {
|
|
|
|
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
|
|
|
|
|
|
|
private ItemStack a;
|
2015-02-27 06:41:06 +08:00
|
|
|
|
2014-11-26 05:32:16 +08:00
|
|
|
- public RecipeFireworks() {}
|
|
|
|
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
|
|
|
+ public RecipeFireworks() {
|
|
|
|
+ super(new ItemStack(Items.FIREWORKS, 0, 0), java.util.Arrays.asList(new ItemStack(Items.GUNPOWDER, 0, 5)));
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
|
|
|
public boolean a(InventoryCrafting inventorycrafting, World world) {
|
|
|
|
this.a = null;
|