Patching more NPEs involving invbalid players, plus mob health bars.

This commit is contained in:
Glitchfinder
2013-05-13 18:39:16 -07:00
parent ed5a43966d
commit 7550b99aaa
2 changed files with 8 additions and 1 deletions

View File

@ -46,7 +46,10 @@ public final class MobHealthbarUtils {
PlayerProfile profile = UserManager.getPlayer(player).getProfile();
if (profile.getMobHealthbarType() == MobHealthbarType.DISABLED) {
if (profile == null) {
return;
}
else if (profile.getMobHealthbarType() == MobHealthbarType.DISABLED) {
return;
}