Skip to content

Commit

Permalink
Merge pull request HelpChat#120 from DongShaoNB/fix/abnormal-update-i…
Browse files Browse the repository at this point in the history
…nterval

fix: when menu option 'update_interval' set to 1, it will default to 10
iGabyTM authored 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
@@ -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);

0 comments on commit 2472f1b

Please sign in to comment.