Apply Perks after cutoff

This commit is contained in:
T00thpick1 2013-05-14 23:52:56 -04:00
parent 1444be665c
commit 5029ad9d93

View File

@ -26,6 +26,10 @@ public final class PerksUtils {
} }
public static int handleActivationPerks(Player player, int ticks, int maxTicks) { public static int handleActivationPerks(Player player, int ticks, int maxTicks) {
if (maxTicks != 0) {
ticks = Math.min(ticks, maxTicks);
}
if (Permissions.twelveSecondActivationBoost(player)) { if (Permissions.twelveSecondActivationBoost(player)) {
ticks += 12; ticks += 12;
} }
@ -36,10 +40,6 @@ public final class PerksUtils {
ticks += 4; ticks += 4;
} }
if (maxTicks != 0) {
ticks = Math.min(ticks, maxTicks);
}
return ticks; return ticks;
} }