mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-09-07 13:08:19 +02:00
Fixes #42
This commit is contained in:
parent
20acd2fc82
commit
a5c947998b
@ -57,10 +57,7 @@ public final class SimpleUpdater {
|
||||
JSONArray filesArray = (JSONArray) readJson("https://api.curseforge.com/servermods/files?projectIds=" + projectId);
|
||||
|
||||
if (filesArray.size() == 0) {
|
||||
// The array cannot be empty, there must be at least one file. The project ID is not valid.
|
||||
plugin.getLogger().warning("The author of this plugin has misconfigured the Updater system.");
|
||||
plugin.getLogger().warning("The project ID (" + projectId + ") provided for updating is invalid.");
|
||||
plugin.getLogger().warning("Please notify the author of this error.");
|
||||
// The array cannot be empty, there must be at least one file. The project ID is not valid or curse returned a wrong response.
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user