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,13 +820,15 @@ public class SlayerPlugin extends Plugin
private void onConfigChanged(ConfigChanged event)
{
if (!event.getGroup().equals("slayer") || !event.getKey().equals("infobox"))
if (!event.getGroup().equals("slayer"))
{
return;
}
updateConfig();
if (event.getKey().equals("infobox"))
{
if (this.showInfobox)
{
clientThread.invoke(this::addCounter);
@@ -836,6 +838,7 @@ public class SlayerPlugin extends Plugin
removeCounter();
}
}
}
@VisibleForTesting
private void killedOne(int delta)