mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Merge pull request #233 from t00thpick1/master
Added missing null check
This commit is contained in:
commit
6f073250f4
@ -396,6 +396,9 @@ public class Skills {
|
|||||||
*/
|
*/
|
||||||
public static void abilityCheck(Player player, SkillType type) {
|
public static void abilityCheck(Player player, SkillType type) {
|
||||||
PlayerProfile profile = Users.getProfile(player);
|
PlayerProfile profile = Users.getProfile(player);
|
||||||
|
if (profile == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ToolType tool = type.getTool();
|
ToolType tool = type.getTool();
|
||||||
|
|
||||||
if (!profile.getToolPreparationMode(tool)) {
|
if (!profile.getToolPreparationMode(tool)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user