From dce1d7ba395a0dfedbac51861dbeaf91ccee2e1c Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 22 Jun 2012 10:57:51 -0400 Subject: [PATCH] Fixed calculations on Reduced Cooldown perk --- src/main/java/com/gmail/nossr50/util/Skills.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/util/Skills.java index f0be1920a..c30283937 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/util/Skills.java @@ -43,13 +43,13 @@ public class Skills { //Reduced Cooldown Donor Perks if (player.hasPermission("mcmmo.perks.cooldowns.halved")) { - adjustedCooldown = adjustedCooldown / 2; + adjustedCooldown = (int) (adjustedCooldown * 0.5); } else if (player.hasPermission("mcmmo.perks.cooldowns.thirded")) { - adjustedCooldown = adjustedCooldown / 3; + adjustedCooldown = (int) (adjustedCooldown * 0.66); } else if (player.hasPermission("mcmmo.perks.cooldowns.quartered")) { - adjustedCooldown = adjustedCooldown / 4; + adjustedCooldown = (int) (adjustedCooldown * 0.75); } if (currentTime - oldTime >= (adjustedCooldown * TIME_CONVERSION_FACTOR)) {