slayer plugin: clear highlighted targets on login

The despawn event is not sent on world hop/logout
This commit is contained in:
Adam
2018-07-14 17:26:12 -04:00
parent 6c803dce03
commit 947c338c42

View File

@@ -188,6 +188,7 @@ public class SlayerPlugin extends Plugin
overlayManager.remove(targetClickboxOverlay);
overlayManager.remove(targetMinimapOverlay);
removeCounter();
highlightedTargets.clear();
}
@Provides
@@ -207,6 +208,7 @@ public class SlayerPlugin extends Plugin
taskName = "";
amount = 0;
loginFlag = true;
highlightedTargets.clear();
break;
case LOGGED_IN:
if (config.amount() != -1