fix config update

This commit is contained in:
HSJ-OSRS
2019-10-01 10:10:45 +01:00
parent 53530200bc
commit 34eb048ea9

View File

@@ -820,20 +820,23 @@ public class SlayerPlugin extends Plugin
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("slayer") || !event.getKey().equals("infobox")) if (!event.getGroup().equals("slayer"))
{ {
return; return;
} }
updateConfig(); updateConfig();
if (this.showInfobox) if (event.getKey().equals("infobox"))
{ {
clientThread.invoke(this::addCounter); if (this.showInfobox)
} {
else clientThread.invoke(this::addCounter);
{ }
removeCounter(); else
{
removeCounter();
}
} }
} }