Merge pull request #4195 from Draycia/master

Don't ready hand when player can't use skill
This commit is contained in:
Robert Alan Chapton 2020-07-13 07:27:33 -07:00 committed by GitHub
commit 99f12fe0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -933,6 +933,10 @@ public class McMMOPlayer {
}
public void processAbilityActivation(PrimarySkillType skill) {
if (!skill.getPermissions(getPlayer())) {
return;
}
if (Config.getInstance().getAbilitiesOnlyActivateWhenSneaking() && !player.isSneaking()) {
return;
}