Skip to content

Commit

Permalink
Merge pull request #120 from DongShaoNB/fix/abnormal-update-interval
Browse files Browse the repository at this point in the history
fix: when menu option 'update_interval' set to 1, it will default to 10
  • Loading branch information
iGabyTM committed Jul 1, 2024
2 parents 08a8da5 + 446adf3 commit 2472f1b
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 2472f1b

Please sign in to comment.