Skip to content

Commit

Permalink
startswith instead of equality
Browse files Browse the repository at this point in the history
  • Loading branch information
char3210 authored Sep 5, 2023
1 parent 25fd274 commit 3fe35dd
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 "java" && active.MainWindowTitle.StartsWith("Minecraft"))
if (active.ProcessName.StartsWith("java") && active.MainWindowTitle.StartsWith("Minecraft"))
instance = active;
}
catch
Expand Down

0 comments on commit 3fe35dd

Please sign in to comment.