This commit is contained in:
Yuri Moens 2021-10-18 18:34:06 +02:00
parent 97d34e4415
commit 34586a83f6
Signed by: ymo
GPG Key ID: F6D51D6FE15BE924

View File

@ -23,7 +23,7 @@ public class CNPC {
for (NPC npc : npcs) { for (NPC npc : npcs) {
Character c = npc.getInteractingCharacter(); Character c = npc.getInteractingCharacter();
if (c != null && c.getName().equals(Players.localPlayer().getName())) { if (c != null && c.getName() != null && c.getName().equals(Players.localPlayer().getName())) {
return npc; return npc;
} }
} }