File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
FCLCore/src/main/java/com/tungsten/fclcore/launch Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,13 @@ private CommandBuilder generateCommandLine() throws IOException {
205205
206206 Set <String > classpath = repository .getClasspath (version );
207207 classpath .add (FCLPath .MIO_LAUNCH_WRAPPER );
208- File jar = new File (repository .getVersionRoot (version .getId ()), version .getId () + ".jar" );
209- // if (!jar.exists() || !jar.isFile())
210- // throw new IOException("Minecraft jar does not exist");
208+ File jar = repository .getVersionJar (version );
209+ if (!jar .exists () || !jar .isFile ()){
210+ String inherits = version .getInheritsFrom ();
211+ if (!inherits .isEmpty ()) {
212+ jar = repository .getVersionJar (inherits );
213+ }
214+ }
211215 classpath .add (jar .getAbsolutePath ());
212216
213217 // Provided Minecraft arguments
You can’t perform that action at this time.
0 commit comments