mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
SPIGOT-4718: Fix creating odd inventory sizes
This commit is contained in:
parent
005e1bbc13
commit
c8d1e94209
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ public class CraftContainer extends Container {
|
||||||
case PLAYER:
|
case PLAYER:
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case BARREL:
|
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;
|
break;
|
||||||
case DISPENSER:
|
case DISPENSER:
|
||||||
case DROPPER:
|
case DROPPER:
|
||||||
|
|
Loading…
Add table
Reference in a new issue