This commit is contained in:
kirillsaint 2023-06-28 23:49:45 +06:00
parent ff4381f210
commit ff09bce5a7
1 changed files with 6 additions and 10 deletions

View File

@ -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());
}
}