Merge pull request #639 from Dreyri/hiddenevent

Fix for the WidgetHiddenChanged event
This commit is contained in:
Adam
2018-03-19 21:00:12 -04:00
committed by GitHub
3 changed files with 56 additions and 6 deletions

View File

@@ -128,7 +128,7 @@ public class AttackIndicatorPlugin extends Plugin
@Subscribe
public void hideWidgets(WidgetHiddenChanged event)
{
if (event.getWidget().isHidden() || TO_GROUP(event.getWidget().getId()) != COMBAT_GROUP_ID)
if (event.getWidget().isSelfHidden() || TO_GROUP(event.getWidget().getId()) != COMBAT_GROUP_ID)
{
return;
}