diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java index 773d09ccb9..088b3daa9a 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java @@ -168,7 +168,7 @@ public class CraftContainer extends Container { case PLAYER: case CHEST: case BARREL: - delegate = new ContainerChest(Containers.GENERIC_9X3, windowId, bottom, top, 3); + delegate = new ContainerChest(Containers.GENERIC_9X3, windowId, bottom, top, top.getSize() / 9); break; case DISPENSER: case DROPPER: