From e90159f27cf634512bb4c12304057f97a5d03179 Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 22 Jul 2017 12:25:28 +0300 Subject: [PATCH] Just to be on safe side with mythicmob check --- src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs2.java | 2 ++ src/main/java/com/gamingmesh/jobs/MythicMobs/MythicMobs4.java | 2 ++ 2 files changed, 4 insertions(+) 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;