Skip to content

Commit

Permalink
Fixed refreshView does not properly refresh the views (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 20, 2023
1 parent 908e65c commit f614a90
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -68,7 +68,7 @@ public final Inventory buildInventory(V menuView) {
String title = placeholdersService.parsePlaceholders(menuView.getInventoryViewer().asOfflinePlayer(),
menuView instanceof AbstractMenuView ? ((AbstractMenuView<?, ?>) menuView).replaceTitle(this.title) : this.title);

Inventory inventory = Optional.ofNullable(menuView.getInventory()).orElse(createInventory(menuView, title));
Inventory inventory = createInventory(menuView, title);

populateInventory(inventory, menuView);

Expand Down

0 comments on commit f614a90

Please sign in to comment.