Merge pull request #233 from t00thpick1/master

Added missing null check
This commit is contained in:
nossr50 2012-08-18 06:19:00 -07:00
commit 6f073250f4

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)) {