Skip to content

Commit

Permalink
Ignore libraries without url
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Mar 3, 2024
1 parent 02906bf commit eb05b2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

sourceCompatibility = 1.8
version = '1.0.0-babric.1'
version = '1.0.0-babric.2'
archivesBaseName = "fabric-installer"

def ENV = System.getenv()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public static void install(Path dir, LoaderVersion loaderVersion, String gameVer
List<Path> libraryFiles = new ArrayList<>();

for (Library library : libraries) {
if (library.url == null) continue;

Path libraryFile = libsDir.resolve(library.getPath());

if (library.inputPath == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/fabricmc/installer/util/Library.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Library(String name, String url, Path inputPath) {

public Library(Json json) {
name = json.at("name").asString();
url = json.at("url").asString();
url = json.has("url") ? json.at("url").asString() : null;
inputPath = null;
}

Expand Down

0 comments on commit eb05b2d

Please sign in to comment.