npc highlight: fix npc interactible check
isVisible is actually the draw priority and is not what we want here
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user