Skip to content

Commit

Permalink
[CORE] One Line Higher
Browse files Browse the repository at this point in the history
Moving the closeEvent to be before the filling of the Inventory.

you need to close and let the inventory save it's state before you go load the state back
  • Loading branch information
Wolfieheart authored Dec 20, 2024
1 parent 6c592cd commit e8f7221
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ private ItemStack createIcon(Material mat, String slot) {
}

public void open() {
fillInventory();
pe.getPlayer().closeInventory();
fillInventory();
pe.getPlayer().openInventory(menuInv);
}

Expand Down

0 comments on commit e8f7221

Please sign in to comment.