From c25ddf063a808e3adb749e22017661f403c5fb7e Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Nov 2016 12:41:03 +1100 Subject: Update to Minecraft 1.11 --- nms-patches/InventoryLargeChest.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'nms-patches/InventoryLargeChest.patch') diff --git a/nms-patches/InventoryLargeChest.patch b/nms-patches/InventoryLargeChest.patch index 253d591a..3ed9ccd8 100644 --- a/nms-patches/InventoryLargeChest.patch +++ b/nms-patches/InventoryLargeChest.patch @@ -1,30 +1,30 @@ --- a/net/minecraft/server/InventoryLargeChest.java +++ b/net/minecraft/server/InventoryLargeChest.java -@@ -1,6 +1,13 @@ +@@ -1,11 +1,62 @@ package net.minecraft.server; - import javax.annotation.Nullable; +// CraftBukkit start ++import java.util.ArrayList; +import java.util.List; +import org.bukkit.Location; + +import org.bukkit.craftbukkit.entity.CraftHumanEntity; +import org.bukkit.entity.HumanEntity; +// CraftBukkit end - ++ public class InventoryLargeChest implements ITileInventory { -@@ -8,6 +15,48 @@ + private final String a; public final ITileInventory left; public final ITileInventory right; + // CraftBukkit start - add fields and methods + public List transaction = new java.util.ArrayList(); + -+ public ItemStack[] getContents() { -+ ItemStack[] result = new ItemStack[this.getSize()]; -+ for (int i = 0; i < result.length; i++) { -+ result[i] = this.getItem(i); ++ public List getContents() { ++ List result = new ArrayList(this.getSize()); ++ for (int i = 0; i < this.getSize(); i++) { ++ result.add(this.getItem(i)); + } + return result; + } @@ -63,7 +63,7 @@ public InventoryLargeChest(String s, ITileInventory itileinventory, ITileInventory itileinventory1) { this.a = s; if (itileinventory == null) { -@@ -73,7 +122,7 @@ +@@ -72,7 +123,7 @@ } public int getMaxStackSize() { -- cgit v1.2.3