unlocked cells are empty by default

This commit is contained in:
jascotty2 2019-09-02 16:31:55 -05:00
parent c00ae4d776
commit 44ad115099

View File

@ -567,7 +567,7 @@ public class Gui {
for (int i = 0; i < cells; ++i) {
final ItemStack item = cellItems.get(i);
inventory.setItem(i, item != null ? item : blankItem);
inventory.setItem(i, item != null ? item : (unlockedCells.getOrDefault(i, false) ? AIR : blankItem));
}
return inventory;
@ -584,7 +584,7 @@ public class Gui {
final int cells = rows * 9;
for (int i = 0; i < cells; ++i) {
final ItemStack item = cellItems.get(i);
inventory.setItem(i, item != null ? item : blankItem);
inventory.setItem(i, item != null ? item : (unlockedCells.getOrDefault(i, false) ? AIR : blankItem));
}
}