Browse Source

fixed fabric modpack start

Veloe 1 year ago
parent
commit
e28b722e1c

+ 1 - 1
VeloeMinecraftLauncher/Utils/Starter/StartCommandBuilder.cs

@@ -309,7 +309,7 @@ internal static class StartCommandBuilder
                     break;
                 case "--gameDir":
                     //for forge
-                    if (!(argsValues.Where(x => x.Contains("forge")).Any() || version.Id.ToLower().Contains("fabric")))
+                    if (!(argsValues.Any(x => x.Contains("forge")) || version.MainClass.Contains("fabric") || version.Id.ToLower().Contains("fabric")))
                         returnString.Append(" --gameDir " + "\"" + Path.GetDirectoryName(Settings.minecraftForlderPath) + "\"");
                     else
                         returnString.Append(" --gameDir " + "\"" + Path.GetDirectoryName(Settings.minecraftForlderPath + "versions/" + version.Id + "/") + "\"");

+ 2 - 2
VeloeMinecraftLauncher/VeloeMinecraftLauncher.csproj

@@ -10,8 +10,8 @@
 		<DebugType>embedded</DebugType>
 		<StartupObject>VeloeMinecraftLauncher.Program</StartupObject>
 		<PlatformTarget>x64</PlatformTarget>
-		<AssemblyVersion>1.5.1.73</AssemblyVersion>
-		<FileVersion>1.5.1.77</FileVersion>
+		<AssemblyVersion>1.5.1.79</AssemblyVersion>
+		<FileVersion>1.5.1.79</FileVersion>
 		<Configurations>Debug;Release</Configurations>
 	</PropertyGroup>
 	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">