mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Some safety redundancy
This commit is contained in:
parent
444d5edd66
commit
49d4e97930
@ -1,7 +1,7 @@
|
||||
Version 2.1.182
|
||||
Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr)
|
||||
Fixed a bug where double smelt never succeeded if the furnace was empty
|
||||
|
||||
Added some safety so that mcMMO automatic save interval is never more frequent than 1 minute
|
||||
|
||||
Version 2.1.181
|
||||
mcMMO no longer pointlessly tries to check for missing UUIDs for FlatFile database
|
||||
|
@ -621,7 +621,11 @@ public class mcMMO extends JavaPlugin {
|
||||
|
||||
private void scheduleTasks() {
|
||||
// Periodic save timer (Saves every 10 minutes by default)
|
||||
long saveIntervalTicks = Config.getInstance().getSaveInterval() * 1200;
|
||||
long second = 20;
|
||||
long minute = second * 60;
|
||||
|
||||
long saveIntervalTicks = Math.max(minute, Config.getInstance().getSaveInterval() * minute);
|
||||
|
||||
new SaveTimerTask().runTaskTimer(this, saveIntervalTicks, saveIntervalTicks);
|
||||
|
||||
// Cleanup the backups folder
|
||||
|
Loading…
Reference in New Issue
Block a user