diff --git a/src/main/java/com/gmail/nossr50/util/skills/PerksUtils.java b/src/main/java/com/gmail/nossr50/util/skills/PerksUtils.java index 74202181f..dc5ad3fee 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/PerksUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/PerksUtils.java @@ -26,6 +26,10 @@ public final class PerksUtils { } public static int handleActivationPerks(Player player, int ticks, int maxTicks) { + if (maxTicks != 0) { + ticks = Math.min(ticks, maxTicks); + } + if (Permissions.twelveSecondActivationBoost(player)) { ticks += 12; } @@ -36,10 +40,6 @@ public final class PerksUtils { ticks += 4; } - if (maxTicks != 0) { - ticks = Math.min(ticks, maxTicks); - } - return ticks; }