mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Fixed abilities activating with the wrong tool in hand
This commit is contained in:
@ -425,10 +425,6 @@ public class Skills {
|
||||
ToolType tool = type.getTool();
|
||||
AbilityType ability = type.getAbility();
|
||||
|
||||
if (!profile.getToolPreparationMode(tool) || !ability.getPermissions(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
profile.setToolPreparationMode(tool, false);
|
||||
|
||||
/* Axes and Woodcutting are odd because they share the same tool.
|
||||
@ -483,11 +479,6 @@ public class Skills {
|
||||
public static boolean triggerCheck(Player player, Block block, AbilityType ability) {
|
||||
boolean activate = true;
|
||||
|
||||
if (!ability.getPermissions(player)) {
|
||||
activate = false;
|
||||
return activate;
|
||||
}
|
||||
|
||||
switch (ability) {
|
||||
case BERSERK:
|
||||
case GIGA_DRILL_BREAKER:
|
||||
|
Reference in New Issue
Block a user