mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
Patching more NPEs involving invbalid players, plus mob health bars.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user