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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user