From c8d1e942094fb77fc6e62722cb2823efb2b88a67 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 24 Apr 2019 10:01:54 +1000 Subject: [PATCH] SPIGOT-4718: Fix creating odd inventory sizes --- .../java/org/bukkit/craftbukkit/inventory/CraftContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: