mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
Added missing null check
This commit is contained in:
parent
740c1131ea
commit
c084ccde40
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user