Skip to content

Commit

Permalink
Run library processor for server-only projects for Minecraft versions…
Browse files Browse the repository at this point in the history
… without bundle metadata (#1231)

* run library processor for server-only projects without  bundle metadata

* implement suggested changes
  • Loading branch information
SpaceWalkerRS authored Dec 29, 2024
1 parent cc51c64 commit 44ca4b8
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,7 @@ private void provideClientLibraries() {

private void provideServerLibraries() {
final BundleMetadata serverBundleMetadata = minecraftProvider.getServerBundleMetadata();

if (serverBundleMetadata == null) {
return;
}

final List<Library> libraries = MinecraftLibraryHelper.getServerLibraries(serverBundleMetadata);
final List<Library> libraries = serverBundleMetadata != null ? MinecraftLibraryHelper.getServerLibraries(serverBundleMetadata) : Collections.emptyList();
final List<Library> processLibraries = processLibraries(libraries);
processLibraries.forEach(this::applyServerLibrary);
}
Expand Down

0 comments on commit 44ca4b8

Please sign in to comment.