3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/RecipeFireworks.patch
2018-07-15 10:00:00 +10:00

22 Zeilen
1.0 KiB
Diff

--- a/net/minecraft/server/RecipeFireworks.java
+++ b/net/minecraft/server/RecipeFireworks.java
@@ -1,14 +1,16 @@
package net.minecraft.server;
-public class RecipeFireworks extends IRecipeComplex {
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
private static final RecipeItemStack a = RecipeItemStack.a(new IMaterial[] { Items.PAPER});
private static final RecipeItemStack b = RecipeItemStack.a(new IMaterial[] { Items.GUNPOWDER});
private static final RecipeItemStack c = RecipeItemStack.a(new IMaterial[] { Items.FIREWORK_STAR});
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeFireworks(MinecraftKey minecraftkey) {
- super(minecraftkey);
+ super(minecraftkey, "", new ItemStack(Items.FIREWORK_ROCKET, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
}
+ // CraftBukkit end
public boolean a(IInventory iinventory, World world) {
if (!(iinventory instanceof InventoryCrafting)) {