@@ -11,7 +11,7 @@
|
||||
public class ContainerChest extends Container {
|
||||
|
||||
private final IInventory container;
|
||||
private final int f;
|
||||
private final int d;
|
||||
+ // CraftBukkit start
|
||||
+ private CraftInventoryView bukkitEntity = null;
|
||||
+ private PlayerInventory player;
|
||||
@@ -36,23 +36,22 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
public ContainerChest(IInventory iinventory, IInventory iinventory1, EntityHuman entityhuman) {
|
||||
this.container = iinventory1;
|
||||
@@ -11,6 +39,11 @@
|
||||
iinventory1.startOpen(entityhuman);
|
||||
int i = (this.f - 4) * 18;
|
||||
private ContainerChest(Containers<?> containers, int i, PlayerInventory playerinventory, int j) {
|
||||
this(containers, i, playerinventory, new InventorySubcontainer(9 * j), j);
|
||||
@@ -49,6 +77,10 @@
|
||||
iinventory.startOpen(playerinventory.player);
|
||||
int k = (this.d - 4) * 18;
|
||||
|
||||
+ // CraftBukkit start - Save player
|
||||
+ // TODO: Should we check to make sure it really is an InventoryPlayer?
|
||||
+ this.player = (PlayerInventory) iinventory;
|
||||
+ this.player = playerinventory;
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
int j;
|
||||
int k;
|
||||
int l;
|
||||
int i1;
|
||||
|
||||
@@ -33,6 +66,7 @@
|
||||
}
|
||||
@@ -72,6 +104,7 @@
|
||||
|
||||
@Override
|
||||
public boolean canUse(EntityHuman entityhuman) {
|
||||
+ if (!this.checkReachable) return true; // CraftBukkit
|
||||
return this.container.a(entityhuman);
|
||||
|
||||
Reference in New Issue
Block a user