diff --git a/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs2.java b/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs2.java index ac9418c1..3d4a5bed 100644 --- a/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs2.java +++ b/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs2.java @@ -27,6 +27,8 @@ public class MythicMobs2 implements MythicMobInterface { @Override public boolean isMythicMob(LivingEntity lVictim) { + if (MMAPI == null || lVictim == null) + return false; if (MMAPI.getMobAPI().isMythicMob(lVictim)) return true; return false; diff --git a/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs4.java b/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs4.java index 0317ec2c..27b04b06 100644 --- a/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs4.java +++ b/src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs4.java @@ -26,6 +26,8 @@ public class MythicMobs4 implements MythicMobInterface { @Override public boolean isMythicMob(LivingEntity lVictim) { + if (MMAPI == null || lVictim == null) + return false; if (MMAPI.isMythicMob(lVictim)) return true; return false;