From a42a1f4a9fc8b66bf934bf485d926048f6a1228d Mon Sep 17 00:00:00 2001 From: GJ Date: Sat, 2 Feb 2013 19:20:31 -0500 Subject: [PATCH] Fixed trying to cast player to SpoutPlayer - need to use SpoutManager.getPlayer(player) instead. --- .../java/com/gmail/nossr50/skills/utilities/SkillTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/utilities/SkillTools.java b/src/main/java/com/gmail/nossr50/skills/utilities/SkillTools.java index 3631105d4..f48c86320 100644 --- a/src/main/java/com/gmail/nossr50/skills/utilities/SkillTools.java +++ b/src/main/java/com/gmail/nossr50/skills/utilities/SkillTools.java @@ -265,7 +265,7 @@ public class SkillTools { } if (mcMMO.spoutEnabled) { - SpoutPlayer spoutPlayer = (SpoutPlayer) player; + SpoutPlayer spoutPlayer = SpoutManager.getPlayer(player); if (spoutPlayer != null && spoutPlayer.isSpoutCraftEnabled()) { if (SpoutConfig.getInstance().getXPBarEnabled()) {