npc highlight: fix npc interactible check

isVisible is actually the draw priority and is not what we want here
This commit is contained in:
Adam
2019-11-26 10:13:09 -05:00
parent 50cd47f381
commit 1d344df411

View File

@@ -146,7 +146,7 @@ public class NpcSceneOverlay extends Overlay
private void renderNpcOverlay(Graphics2D graphics, NPC actor, Color color) private void renderNpcOverlay(Graphics2D graphics, NPC actor, Color color)
{ {
NPCComposition npcComposition = actor.getTransformedComposition(); NPCComposition npcComposition = actor.getTransformedComposition();
if (npcComposition == null || !npcComposition.isVisible()) if (npcComposition == null || !npcComposition.isInteractible())
{ {
return; return;
} }