From fdd6c0a0d86a56b6028e809d88025092d78617c1 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Wed, 20 Feb 2013 17:13:57 -0800 Subject: [PATCH] Fixing an NPE related to Spout players. --- .../com/gmail/nossr50/skills/runnables/SkillMonitor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/runnables/SkillMonitor.java b/src/main/java/com/gmail/nossr50/skills/runnables/SkillMonitor.java index f695aa3fa..93652cc6e 100644 --- a/src/main/java/com/gmail/nossr50/skills/runnables/SkillMonitor.java +++ b/src/main/java/com/gmail/nossr50/skills/runnables/SkillMonitor.java @@ -7,6 +7,7 @@ import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.skills.utilities.AbilityType; import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.skills.utilities.SkillType; +import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Users; public class SkillMonitor implements Runnable { @@ -15,6 +16,10 @@ public class SkillMonitor implements Runnable { long curTime = System.currentTimeMillis(); for (Player player : mcMMO.p.getServer().getOnlinePlayers()) { + if (Misc.isNPCEntity(player)) { + continue; + } + PlayerProfile profile = Users.getPlayer(player).getProfile(); /*