Skip radar sound if the player is looking at the tile
parent
603c3e43a0
commit
2b59c6759d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue