Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/RecipeFireworks.patch
2019-04-23 12:00:00 +10:00

22 Zeilen
983 B
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 { // CraftBukkit - added extends
private static final RecipeItemStack a = RecipeItemStack.a(Items.PAPER);
private static final RecipeItemStack b = RecipeItemStack.a(Items.GUNPOWDER);
private static final RecipeItemStack c = RecipeItemStack.a(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(InventoryCrafting inventorycrafting, World world) {
boolean flag = false;