Skip to content

Commit

Permalink
allow versions with 0 libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Jun 16, 2024
1 parent deff003 commit f6ff07e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ public StepResult run(PipelineCache pipelineCache, OrderedVersion mcVersion, Map
}
Path libraryPath = pipelineCache.getForKey(Step.STEP_FETCH_LIBRARIES);
if (libraryPath == null) {
MiscHelper.panic("Libraries for version %s do not exist", mcVersion.launcherFriendlyVersionName());
// server only versions have no libraries, this is not a problem
if (mcVersion.libraries().size() > 0) {
MiscHelper.panic("Libraries for version %s do not exist", mcVersion.launcherFriendlyVersionName());
}
}

// Adapted from loom-quiltflower by Juuxel
Expand Down

0 comments on commit f6ff07e

Please sign in to comment.