Fix #689 NPE from entity hider mixin.

This commit is contained in:
Ganom
2019-06-21 21:20:04 -04:00
parent d16ef229eb
commit 0550600132

View File

@@ -165,12 +165,18 @@ public abstract class EntityHiderMixin implements RSScene
}
for (String name : names)
{
if (name != null && !name.equals(""))
{
if (npc.getName() != null)
{
if (npc.getName().startsWith(name))
{
return false;
}
}
}
}
return drawingUI ? !hideNPCs2D : !hideNPCs;
}