13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/RecipeFireworks.patch
CraftBukkit/Spigot a8ddf37419 Remove patch headers
By: GunfighterJ <joseph.jenniges@gmail.com>
2014-11-28 16:54:14 -06:00

20 Zeilen
670 B
Diff

@@ -3,11 +3,15 @@
import com.google.common.collect.Lists;
import java.util.ArrayList;
-public class RecipeFireworks implements IRecipe {
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
private ItemStack a;
-
- 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;