Fix
This commit is contained in:
parent
ff4381f210
commit
ff09bce5a7
|
@ -40,18 +40,14 @@ public class SilentClientTweaker implements ITweaker {
|
||||||
launchArgs.add(profile);
|
launchArgs.add(profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if assetDir is passed as a launch argument, if not add it
|
if (assetsDir != null) {
|
||||||
if (!args.contains(ASSET_DIR) && profile != null)
|
launchArgs.add("--assetsDir");
|
||||||
{
|
launchArgs.add(assetsDir.getAbsolutePath());
|
||||||
launchArgs.add(ASSET_DIR);
|
|
||||||
launchArgs.add(profile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if gameDir is passed as a launch argument, if not add it
|
if (gameDir != null) {
|
||||||
if (!args.contains(GAME_DIR) && profile != null)
|
launchArgs.add("--gameDir");
|
||||||
{
|
launchArgs.add(gameDir.getAbsolutePath());
|
||||||
launchArgs.add(GAME_DIR);
|
|
||||||
launchArgs.add(profile);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue