@@ -1,9 +1,8 @@
|
||||
--- a/net/minecraft/server/InventoryLargeChest.java
|
||||
+++ b/net/minecraft/server/InventoryLargeChest.java
|
||||
@@ -1,6 +1,14 @@
|
||||
@@ -1,10 +1,61 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
+// CraftBukkit start
|
||||
+import java.util.ArrayList;
|
||||
+import java.util.List;
|
||||
@@ -12,12 +11,11 @@
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
+import org.bukkit.entity.HumanEntity;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public class InventoryLargeChest implements IInventory {
|
||||
|
||||
public class InventoryLargeChest implements ITileInventory {
|
||||
|
||||
@@ -8,6 +16,48 @@
|
||||
public final ITileInventory left;
|
||||
public final ITileInventory right;
|
||||
public final IInventory left;
|
||||
public final IInventory right;
|
||||
|
||||
+ // CraftBukkit start - add fields and methods
|
||||
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
|
||||
@@ -61,15 +59,15 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public InventoryLargeChest(IChatBaseComponent ichatbasecomponent, ITileInventory itileinventory, ITileInventory itileinventory1) {
|
||||
this.a = ichatbasecomponent;
|
||||
if (itileinventory == null) {
|
||||
@@ -75,7 +125,7 @@
|
||||
}
|
||||
public InventoryLargeChest(IInventory iinventory, IInventory iinventory1) {
|
||||
if (iinventory == null) {
|
||||
iinventory = iinventory1;
|
||||
@@ -59,7 +110,7 @@
|
||||
|
||||
@Override
|
||||
public int getMaxStackSize() {
|
||||
- return this.left.getMaxStackSize();
|
||||
+ return Math.min(this.left.getMaxStackSize(), this.right.getMaxStackSize()); // CraftBukkit - check both sides
|
||||
}
|
||||
|
||||
public void update() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user