mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 19:01:44 +00:00
[FEATURE] Added Library#requiresJar
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user