From 5029ad9d938e7143bb9a7c13c0d10025b2318678 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Tue, 14 May 2013 23:52:56 -0400 Subject: [PATCH] Apply Perks after cutoff --- .../java/com/gmail/nossr50/util/skills/PerksUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }