Skip to content

Commit a6a5325

Browse files
committed
Use Minecraft-Preview- prefix for preview builds
This change is made so that in the case that Microsoft publishes a preview build with the same version as a beta build, the launcher is able to have both of these downloaded at once.
1 parent e6db663 commit a6a5325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MCLauncher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public Version(string uuid, string name, VersionType versionType, bool isNew, IC
531531
this.DownloadCommand = commands.DownloadCommand;
532532
this.LaunchCommand = commands.LaunchCommand;
533533
this.RemoveCommand = commands.RemoveCommand;
534-
this.GameDirectory = "Minecraft-" + Name;
534+
this.GameDirectory = (versionType == VersionType.Preview ? "Minecraft-Preview-" : "Minecraft-") + Name;
535535
}
536536
public Version(string name, string directory, ICommonVersionCommands commands) {
537537
this.UUID = UNKNOWN_UUID;

0 commit comments

Comments
 (0)