clanranks-sounds: Fix clan ranks being incorrect, fix sounds after rx conversion
This commit is contained in:
@@ -134,7 +134,7 @@ public class ClanManager
|
||||
|
||||
private void onGameStateChanged(GameStateChanged gameStateChanged)
|
||||
{
|
||||
if (gameStateChanged.getGameState() == GameState.LOGIN_SCREEN && offset == 0)
|
||||
if (gameStateChanged.getGameState() == GameState.LOGGED_IN && offset == 0)
|
||||
{
|
||||
loadClanChatIcons();
|
||||
}
|
||||
|
||||
@@ -65,13 +65,16 @@ public class SoundsPlugin extends Plugin
|
||||
{
|
||||
if (event.getNpcid() != -1)
|
||||
{
|
||||
if (ArrayUtils.contains(sounds.get(event.getNpcid()), event.getSoundId()))
|
||||
if (sounds != null)
|
||||
{
|
||||
return;
|
||||
if (ArrayUtils.contains(sounds.get(event.getNpcid()), event.getSoundId()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
int[] newSounds = ArrayUtils.add(sounds.get(event.getNpcid()), event.getSoundId());
|
||||
sounds.put(event.getNpcid(), newSounds);
|
||||
soundsClient.submit(event.getNpcid(), event.getSoundId());
|
||||
}
|
||||
int[] newSounds = ArrayUtils.add(sounds.get(event.getNpcid()), event.getSoundId());
|
||||
sounds.put(event.getNpcid(), newSounds);
|
||||
soundsClient.submit(event.getNpcid(), event.getSoundId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user