mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-09-16 17:44:17 +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);
|
JSONArray filesArray = (JSONArray) readJson("https://api.curseforge.com/servermods/files?projectIds=" + projectId);
|
||||||
|
|
||||||
if (filesArray.size() == 0) {
|
if (filesArray.size() == 0) {
|
||||||
// The array cannot be empty, there must be at least one file. The project ID is not valid.
|
// The array cannot be empty, there must be at least one file. The project ID is not valid or curse returned a wrong response.
|
||||||
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.");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user