Skip radar sound if the player is looking at the tile
This commit is contained in:
@@ -195,6 +195,10 @@ namespace stardew_access.Game
|
|||||||
|
|
||||||
public void playSoundAt(Vector2 position, String? searchQuery)
|
public void playSoundAt(Vector2 position, String? searchQuery)
|
||||||
{
|
{
|
||||||
|
// Skip if player is directly looking at the tile
|
||||||
|
if (CurrentPlayer.getNextTile().Equals(position))
|
||||||
|
return;
|
||||||
|
|
||||||
if (searchQuery == null || !exclusions.Contains(searchQuery.ToLower().Trim()))
|
if (searchQuery == null || !exclusions.Contains(searchQuery.ToLower().Trim()))
|
||||||
{
|
{
|
||||||
if(MainClass.radarDebug)
|
if(MainClass.radarDebug)
|
||||||
|
Reference in New Issue
Block a user