summaryrefslogtreecommitdiffstats
path: root/nms-patches/InventoryMerchant.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-11-17 12:41:03 +1100
committermd_5 <git@md-5.net>2016-11-17 12:41:03 +1100
commitc25ddf063a808e3adb749e22017661f403c5fb7e (patch)
treeb2efcff512be12fd3e38cf8c36386148ce6ab4ae /nms-patches/InventoryMerchant.patch
parent51263e97187a84338f89698eef187284055a682a (diff)
downloadcraftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar
craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.gz
craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.lz
craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.xz
craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.zip
Update to Minecraft 1.11
Diffstat (limited to 'nms-patches/InventoryMerchant.patch')
-rw-r--r--nms-patches/InventoryMerchant.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/InventoryMerchant.patch b/nms-patches/InventoryMerchant.patch
index 51bf4d59..58445a12 100644
--- a/nms-patches/InventoryMerchant.patch
+++ b/nms-patches/InventoryMerchant.patch
@@ -3,7 +3,7 @@
@@ -1,6 +1,13 @@
package net.minecraft.server;
- import javax.annotation.Nullable;
+ import java.util.Iterator;
+// CraftBukkit start
+import java.util.List;
+import org.bukkit.Location;
@@ -22,7 +22,7 @@
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
+ private int maxStack = MAX_STACK;
+
-+ public ItemStack[] getContents() {
++ public List<ItemStack> getContents() {
+ return this.itemsInSlots;
+ }
+
@@ -53,9 +53,9 @@
+ // CraftBukkit end
+
public InventoryMerchant(EntityHuman entityhuman, IMerchant imerchant) {
+ this.itemsInSlots = NonNullList.a(3, ItemStack.a);
this.player = entityhuman;
- this.merchant = imerchant;
-@@ -73,7 +114,7 @@
+@@ -89,7 +130,7 @@
}
public int getMaxStackSize() {