npchighlight: Do not render 'null' names (#9093)

Fix names showing as null in the NPC highlight plugin

Fixes #9084
This commit is contained in:
Hermetism
2019-06-26 01:15:23 +12:00
committed by Tomas Slusny
parent a3e9b790dd
commit cb53857f04

View File

@@ -173,7 +173,7 @@ public class NpcSceneOverlay extends Overlay
break;
}
if (config.drawNames())
if (config.drawNames() && actor.getName() != null)
{
String npcName = Text.removeTags(actor.getName());
Point textLocation = actor.getCanvasTextLocation(graphics, npcName, actor.getLogicalHeight() + 40);