Fixed trying to cast player to SpoutPlayer - need to use

SpoutManager.getPlayer(player) instead.
This commit is contained in:
GJ 2013-02-02 19:20:31 -05:00
parent 8f17ec96f0
commit a42a1f4a9f

View File

@ -265,7 +265,7 @@ public class SkillTools {
} }
if (mcMMO.spoutEnabled) { if (mcMMO.spoutEnabled) {
SpoutPlayer spoutPlayer = (SpoutPlayer) player; SpoutPlayer spoutPlayer = SpoutManager.getPlayer(player);
if (spoutPlayer != null && spoutPlayer.isSpoutCraftEnabled()) { if (spoutPlayer != null && spoutPlayer.isSpoutCraftEnabled()) {
if (SpoutConfig.getInstance().getXPBarEnabled()) { if (SpoutConfig.getInstance().getXPBarEnabled()) {