Skip to content

Commit

Permalink
refactor: better readability and maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
DongShaoNB committed Jul 1, 2024
1 parent f6e8b35 commit 446adf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public void loadMenu(FileConfiguration c, String key, boolean mainConfig) {
}

final int updateInterval = c.getInt(pre + "update_interval", 10);
builder.updateInterval(updateInterval >= 1 ? updateInterval : 10);
builder.updateInterval(updateInterval > 0 ? updateInterval : 10);

Map<Integer, TreeMap<Integer, MenuItem>> items = loadMenuItems(c, key, mainConfig);

Expand Down

0 comments on commit 446adf3

Please sign in to comment.