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:
@@ -243,6 +243,13 @@ public class PartyPlugin extends Plugin implements KeyListener
|
|||||||
|
|
||||||
if (config.sounds())
|
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);
|
client.playSoundEffect(SoundEffectID.SMITH_ANVIL_TINK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user