mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 03:25:29 +01:00
Don't poll the current time more than once a second for updates.
This commit is contained in:
parent
3257d6069a
commit
3b26940385
@ -547,7 +547,7 @@ public class ProtocolLibrary extends JavaPlugin {
|
||||
updateConfiguration();
|
||||
|
||||
// Check for updates too
|
||||
if (!UPDATES_DISABLED) {
|
||||
if (!UPDATES_DISABLED && (tickCounter % 20) == 0) {
|
||||
checkUpdates();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user