Skip to content

Commit f72cea7

Browse files
Fully fixed.
Finally fixed the Inventory opening issue
1 parent 7f85e8d commit f72cea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/me/flame/menus/menu/BaseMenu.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ public M updateTitle(String title) {
610610
protected void recreateItems() {
611611
if (itemMap.isEmpty()) return;
612612
for (Map.Entry<Integer, MenuItem> entry : itemMap.entrySet()) {
613-
int i = entry.getKey();
614-
ItemStack item = entry.getValue().getItemStack();
613+
int i = entry.getKey() - 1;
614+
MenuItem item = entry.getValue().getItemStack();
615615
if (item == null || item.getType() == AIR) {
616616
inventory.setItem(i, null);
617617
continue;

0 commit comments

Comments
 (0)