fix update checker exception when the api couldnt be accessed
This commit is contained in:
parent
bd90f80314
commit
b74cbfdef5
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ public class UpdateChecker extends BukkitRunnable {
|
|||
|
||||
public void run() {
|
||||
Resource resource = api.getResource(RESOURCE_ID).join();
|
||||
if (resource == null) return;
|
||||
newestVersion = resource.getVersion();
|
||||
|
||||
int current = versionToNumber(plugin.getDescription().getVersion());
|
||||
|
|
Loading…
Reference in a new issue