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