Fixed sapi
parent
d66fd0afb0
commit
4751af8fec
|
@ -157,6 +157,8 @@ namespace stardew_access.Features
|
||||||
|
|
||||||
#region Track dropped items
|
#region Track dropped items
|
||||||
if (MainClass.Config.TrackDroppedItems)
|
if (MainClass.Config.TrackDroppedItems)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
NetCollection<Debris> droppedItems = Game1.currentLocation.debris;
|
NetCollection<Debris> droppedItems = Game1.currentLocation.debris;
|
||||||
if (droppedItems.Count() > 0)
|
if (droppedItems.Count() > 0)
|
||||||
|
@ -179,6 +181,11 @@ namespace stardew_access.Features
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
MainClass.ErrorLog($"An error occured while detecting dropped items:\n{e.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
if (toReturn == "")
|
if (toReturn == "")
|
||||||
|
|
|
@ -16,6 +16,7 @@ namespace stardew_access.ScreenReader
|
||||||
public void InitializeScreenReader()
|
public void InitializeScreenReader()
|
||||||
{
|
{
|
||||||
MainClass.InfoLog("Initializing Tolk...");
|
MainClass.InfoLog("Initializing Tolk...");
|
||||||
|
Tolk.TrySAPI(true);
|
||||||
Tolk.Load();
|
Tolk.Load();
|
||||||
|
|
||||||
MainClass.InfoLog("Querying for the active screen reader driver...");
|
MainClass.InfoLog("Querying for the active screen reader driver...");
|
||||||
|
|
Loading…
Reference in New Issue