SPIGOT-4718: Fix creating odd inventory sizes

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-04-24 10:01:54 +10:00
parent 545d8a9948
commit 950a1e4bb8

View File

@ -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: