mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
--- 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;
|
||||
@@ -1,14 +1,16 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
-public class RecipeFireworks implements IRecipe {
|
||||
-public class RecipeFireworks extends IRecipeComplex {
|
||||
+public class RecipeFireworks extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
||||
|
||||
private ItemStack a;
|
||||
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() {
|
||||
+ super("", new ItemStack(Items.FIREWORKS, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.GUNPOWDER)));
|
||||
this.a = ItemStack.a;
|
||||
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) {
|
||||
this.a = ItemStack.a;
|
||||
public boolean a(IInventory iinventory, World world) {
|
||||
if (!(iinventory instanceof InventoryCrafting)) {
|
||||
|
Reference in New Issue
Block a user