fix update checker exception when the api couldnt be accessed

This commit is contained in:
Pyrbu 2023-04-25 18:52:59 +01:00
parent bd90f80314
commit b74cbfdef5

@ -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());