Fixing an NPE related to Spout players.

This commit is contained in:
Glitchfinder 2013-02-20 17:13:57 -08:00 committed by NuclearW
parent c589c5556b
commit fdd6c0a0d8

View File

@ -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();
/*