npc overlay: set lower priority on npc change and despawn handlers

Similar to spawn, these need to run after plugins for most of the highlight functions to work correctly
This commit is contained in:
Adam
2021-09-09 20:38:03 -04:00
parent 342e0169e3
commit c5586123c8

View File

@@ -81,14 +81,18 @@ public class NpcOverlayService
}
}
@Subscribe
@Subscribe(
priority = -1
)
private void onNpcDespawned(NpcDespawned npcDespawned)
{
final NPC npc = npcDespawned.getNpc();
highlightedNpcs.remove(npc);
}
@Subscribe
@Subscribe(
priority = -1
)
private void onNpcChanged(NpcChanged event)
{
final NPC npc = event.getNpc();