Skip to content

Commit

Permalink
Merge pull request #80 from qwertyuioplkjhgfd/java-instance-detection
Browse files Browse the repository at this point in the history
check for java instead of only javaw
  • Loading branch information
DarwinBaker authored Sep 10, 2023
2 parents 486461d + 3fe35dd commit 48bfc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AATool/Utilities/ActiveInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static bool TryGetActive(out Process instance)
Debug.EndTiming("get_active_instance");

//verify that process is an instance of minecraft
if (active.ProcessName is "javaw" && active.MainWindowTitle.StartsWith("Minecraft"))
if (active.ProcessName.StartsWith("java") && active.MainWindowTitle.StartsWith("Minecraft"))
instance = active;
}
catch
Expand Down

0 comments on commit 48bfc6c

Please sign in to comment.