Potential fix for Leos's problem

"I dont know the reproducing step for this but, sometimes when i go to the seed shop, this message keeps looping when i talk to piere to buy things. Welcome to
Pierre's! Need
some supplies?"
This commit is contained in:
shoaib11120
2021-12-29 19:57:22 +05:30
parent aa0f36cad1
commit 0b96c72137
3 changed files with 21 additions and 3 deletions

View File

@@ -199,7 +199,13 @@ namespace stardew_access.Patches
#endregion
#region Narrate toSpeak
ScreenReader.sayWithChecker(toSpeak.ToString(), true);
// To prevent it from getting conflicted by two hover texts at the same time, two seperate methods are used.
// For example, sometimes `Welcome to Pierre's` and the items in seeds shop get conflicted causing it to speak infinitely.
if(Context.IsPlayerFree)
ScreenReader.sayWithChecker(toSpeak.ToString(), true); // Normal Checker
else
ScreenReader.sayWithMenuChecker(toSpeak.ToString(), true); // Normal Checker
#endregion
}
catch (Exception e)