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
2017-05-14 12:00:00 +10:00

21 Zeilen
738 B
Diff

--- a/net/minecraft/server/RecipeFireworks.java
+++ b/net/minecraft/server/RecipeFireworks.java
@@ -3,13 +3,16 @@
import com.google.common.collect.Lists;
import java.util.ArrayList;
-public class RecipeFireworks extends IRecipe {
+public class RecipeFireworks extends ShapelessRecipes { // CraftBukkit
private ItemStack b;
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeFireworks() {
+ super("", new ItemStack(Items.FIREWORKS, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
this.b = ItemStack.a;
}
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
this.b = ItemStack.a;