fix issue where glass is being taken out of bottom row still

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-11-30 12:43:23 -05:00
parent 47ae641695
commit 7a3ec41ca8
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -58,9 +58,14 @@ public final class GUIBundleCreation extends AbstractPlaceholderGui {
setAcceptsItems(true);
setAllowShiftClick(true);
setUnlockedRange(0, 44);
for (int i = 0; i < 45; i++)
setItem(i, XMaterial.AIR.parseItem());
setActionForRange(45, 53, e -> {
e.event.setCancelled(true);
});
setOnClose(close -> {
for (int i = 0; i < 45; i++) {
final ItemStack item = getItem(i);