mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Update to Minecraft 1.11
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/server/CraftingManager.java
|
||||
+++ b/net/minecraft/server/CraftingManager.java
|
||||
@@ -10,10 +10,16 @@
|
||||
@@ -9,10 +9,16 @@
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
|
||||
+
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
public static CraftingManager getInstance() {
|
||||
return CraftingManager.a;
|
||||
@@ -178,7 +184,12 @@
|
||||
@@ -179,7 +185,12 @@
|
||||
this.registerShapedRecipe(new ItemStack(Items.ARMOR_STAND, 1), new Object[] { "///", " / ", "/_/", Character.valueOf('/'), Items.STICK, Character.valueOf('_'), new ItemStack(Blocks.STONE_SLAB, 1, BlockDoubleStepAbstract.EnumStoneSlabVariant.STONE.a())});
|
||||
this.registerShapedRecipe(new ItemStack(Blocks.END_ROD, 4), new Object[] { "/", "#", Character.valueOf('/'), Items.BLAZE_ROD, Character.valueOf('#'), Items.CHORUS_FRUIT_POPPED});
|
||||
this.registerShapedRecipe(new ItemStack(Blocks.di, 1), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), new ItemStack(Items.DYE, 1, EnumColor.WHITE.getInvColorIndex())});
|
||||
@@ -36,7 +36,7 @@
|
||||
do {
|
||||
if (!iterator.hasNext()) {
|
||||
+ inventorycrafting.currentRecipe = null; // CraftBukkit - Clear recipe when no recipe is found
|
||||
return null;
|
||||
return ItemStack.a;
|
||||
}
|
||||
|
||||
irecipe = (IRecipe) iterator.next();
|
||||
@@ -50,4 +50,4 @@
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
public ItemStack[] b(InventoryCrafting inventorycrafting, World world) {
|
||||
public NonNullList<ItemStack> b(InventoryCrafting inventorycrafting, World world) {
|
||||
|
Reference in New Issue
Block a user