[FEATURE] Added Library#requiresJar

This commit is contained in:
JKetelaar committed 2016-01-09 21:45:59 +01:00
1 parent 46c5232cf4
commit b1e046d74b
5 files changed
+18 -2

No files matched your search

@@ -33,7 +33,7 @@ public class Environment {
libs.add(new Naga());
for(Library lib : libs) {
if(!lib.hasJar()) {
if(!lib.hasJar() && lib.requiresJar()) {
Core.verbose("Downloading " + lib.getLibraryName() + "...");
VerboseLoader.setState("Downloading " + lib.getLibraryName() + "...");
WebUtil.downloadFile(lib.getDownloadLink(), lib.getJarFile(), VerboseLoader.get());