Skip to content

Commit

Permalink
Fixed issue with menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Feb 5, 2024
1 parent 6fb9fcb commit cb2f4ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/java/me/funky/praxi/util/menu/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ public void openMenu(final Player player) {
Menu previousMenu = Menu.currentlyOpenedMenus.get(player.getName());
Inventory inventory = null;
int size = this.getSize() == -1 ? this.size(this.buttons) : this.getSize();
this.filter = getFilter();
if(getFilter() != null){
this.filter = getFilter();
}
boolean update = false;
String title = CC.translate(this.getTitle(player));

Expand Down Expand Up @@ -173,7 +175,7 @@ public int getSize() {
}

public Filters getFilter() {
return null;
return Filters.NONE;
}


Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/funky/praxi/util/menu/filters/Filters.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

public enum Filters {
BORDER,
FILL
FILL,
NONE
}

0 comments on commit cb2f4ba

Please sign in to comment.