Skip to content

Commit 8c9c101

Browse files
committed
fix: 修复未设置 JavaInfo.IsFatFile 的问题
1 parent 874c314 commit 8c9c101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PCL2.Neo/Models/Minecraft/Java/JavaData.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ private static async Task<JavaInfo> JavaInfoInitAsync(string directoryPath)
136136
{
137137
var executableArchitecture = ArchitectureUtils.GetExecutableArchitecture(javaExe);
138138

139+
if (executableArchitecture == ArchitectureUtils.Architecture.FatFile)
140+
{
141+
info.Compability = JavaCompability.Yes;
142+
info.IsFatFile = true;
143+
}
144+
139145
if (executableArchitecture.ToString() == RuntimeInformation.OSArchitecture.ToString())
140146
{
141147
info.Compability = JavaCompability.Yes;

0 commit comments

Comments
 (0)