Don't poll the current time more than once a second for updates.

This commit is contained in:
Kristian S. Stangeland 2014-03-27 20:59:17 +01:00
parent 3257d6069a
commit 3b26940385

View File

@ -547,7 +547,7 @@ public class ProtocolLibrary extends JavaPlugin {
updateConfiguration();
// Check for updates too
if (!UPDATES_DISABLED) {
if (!UPDATES_DISABLED && (tickCounter % 20) == 0) {
checkUpdates();
}
}