npchighlight: Do not render 'null' names (#9093)
Fix names showing as null in the NPC highlight plugin Fixes #9084
This commit is contained in:
@@ -173,7 +173,7 @@ public class NpcSceneOverlay extends Overlay
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.drawNames())
|
if (config.drawNames() && actor.getName() != null)
|
||||||
{
|
{
|
||||||
String npcName = Text.removeTags(actor.getName());
|
String npcName = Text.removeTags(actor.getName());
|
||||||
Point textLocation = actor.getCanvasTextLocation(graphics, npcName, actor.getLogicalHeight() + 40);
|
Point textLocation = actor.getCanvasTextLocation(graphics, npcName, actor.getLogicalHeight() + 40);
|
||||||
|
|||||||
Reference in New Issue
Block a user