@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/inventory/ContainerChest.java
|
||||
+++ b/net/minecraft/world/inventory/ContainerChest.java
|
||||
@@ -6,11 +6,40 @@
|
||||
@@ -6,10 +6,39 @@
|
||||
import net.minecraft.world.entity.player.PlayerInventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
+
|
||||
public class ContainerChest extends Container {
|
||||
|
||||
private static final int SLOTS_PER_ROW = 9;
|
||||
private final IInventory container;
|
||||
private final int containerRows;
|
||||
+ // CraftBukkit start
|
||||
@@ -41,18 +40,17 @@
|
||||
|
||||
private ContainerChest(Containers<?> containers, int i, PlayerInventory playerinventory, int j) {
|
||||
this(containers, i, playerinventory, new InventorySubcontainer(9 * j), j);
|
||||
@@ -56,6 +85,10 @@
|
||||
@@ -53,6 +82,9 @@
|
||||
this.container = iinventory;
|
||||
this.containerRows = j;
|
||||
iinventory.startOpen(playerinventory.player);
|
||||
int k = (this.containerRows - 4) * 18;
|
||||
|
||||
+ // CraftBukkit start - Save player
|
||||
+ this.player = playerinventory;
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
int l;
|
||||
int i1;
|
||||
boolean flag = true;
|
||||
|
||||
@@ -79,6 +112,7 @@
|
||||
this.addChestGrid(iinventory, 8, 18);
|
||||
@@ -72,6 +104,7 @@
|
||||
|
||||
@Override
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
|
||||
Reference in New Issue
Block a user