music: check game state before applying sliders on startup
This accesses vars, which typically cannot be accessed when not logged in, or in early startup
This commit is contained in:
@@ -186,7 +186,7 @@ public class MusicPlugin extends Plugin
|
|||||||
channels = new Channel[]{musicChannel, effectChannel, areaChannel};
|
channels = new Channel[]{musicChannel, effectChannel, areaChannel};
|
||||||
|
|
||||||
addMusicButtons();
|
addMusicButtons();
|
||||||
if (musicConfig.granularSliders())
|
if (client.getGameState() == GameState.LOGGED_IN && musicConfig.granularSliders())
|
||||||
{
|
{
|
||||||
updateMusicOptions();
|
updateMusicOptions();
|
||||||
resetSettingsWindow();
|
resetSettingsWindow();
|
||||||
|
|||||||
Reference in New Issue
Block a user