Added missing null check

This commit is contained in:
t00thpick1 2012-08-17 18:45:08 -03:00
parent 740c1131ea
commit c084ccde40

View File

@ -396,6 +396,9 @@ public class Skills {
*/
public static void abilityCheck(Player player, SkillType type) {
PlayerProfile profile = Users.getProfile(player);
if (profile == null) {
return;
}
ToolType tool = type.getTool();
if (!profile.getToolPreparationMode(tool)) {