Merge pull request #7694 from deathbeam/show-local-sounds-party

Play party ping sound only when ping is in scene
This commit is contained in:
Tomas Slusny
2019-02-05 09:11:03 +00:00
committed by GitHub

View File

@@ -243,6 +243,13 @@ public class PartyPlugin extends Plugin implements KeyListener
if (config.sounds())
{
WorldPoint point = event.getPoint();
if (point.getPlane() != client.getPlane() || !WorldPoint.isInScene(client, point.getX(), point.getY()))
{
return;
}
client.playSoundEffect(SoundEffectID.SMITH_ANVIL_TINK);
}
}