diff options
Diffstat (limited to 'nms-patches/RecipeFireworksStar.patch')
-rw-r--r-- | nms-patches/RecipeFireworksStar.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/RecipeFireworksStar.patch b/nms-patches/RecipeFireworksStar.patch index e4900565..80e004ff 100644 --- a/nms-patches/RecipeFireworksStar.patch +++ b/nms-patches/RecipeFireworksStar.patch @@ -7,9 +7,9 @@ -public class RecipeFireworksStar extends IRecipeComplex { +public class RecipeFireworksStar extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends - private static final RecipeItemStack a = RecipeItemStack.a(new IMaterial[] { Items.FIRE_CHARGE, Items.FEATHER, Items.GOLD_NUGGET, Items.SKELETON_SKULL, Items.WITHER_SKELETON_SKULL, Items.CREEPER_HEAD, Items.PLAYER_HEAD, Items.DRAGON_HEAD, Items.ZOMBIE_HEAD}); - private static final RecipeItemStack b = RecipeItemStack.a(new IMaterial[] { Items.DIAMOND}); - private static final RecipeItemStack c = RecipeItemStack.a(new IMaterial[] { Items.GLOWSTONE_DUST}); + private static final RecipeItemStack a = RecipeItemStack.a(Items.FIRE_CHARGE, Items.FEATHER, Items.GOLD_NUGGET, Items.SKELETON_SKULL, Items.WITHER_SKELETON_SKULL, Items.CREEPER_HEAD, Items.PLAYER_HEAD, Items.DRAGON_HEAD, Items.ZOMBIE_HEAD); + private static final RecipeItemStack b = RecipeItemStack.a(Items.DIAMOND); + private static final RecipeItemStack c = RecipeItemStack.a(Items.GLOWSTONE_DUST); - private static final Map<Item, ItemFireworks.EffectType> d = (Map) SystemUtils.a((Object) Maps.newHashMap(), (hashmap) -> { + private static final Map<Item, ItemFireworks.EffectType> d = (Map) SystemUtils.a(Maps.newHashMap(), (hashmap) -> { // CraftBukkit - decompile error hashmap.put(Items.FIRE_CHARGE, ItemFireworks.EffectType.LARGE_BALL); @@ -17,7 +17,7 @@ hashmap.put(Items.GOLD_NUGGET, ItemFireworks.EffectType.STAR); @@ -26,9 +26,11 @@ }); - private static final RecipeItemStack e = RecipeItemStack.a(new IMaterial[] { Items.GUNPOWDER}); + private static final RecipeItemStack e = RecipeItemStack.a(Items.GUNPOWDER); + // CraftBukkit start - Delegate to new parent class with bogus info public RecipeFireworksStar(MinecraftKey minecraftkey) { |