mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed potion buff option not using the appropriate # of ticks
This commit is contained in:
parent
1cde45599e
commit
c849f751bb
@ -20,6 +20,7 @@ Version 1.4.05-dev
|
|||||||
= Fixed Berserk getting "stuck" when /mcrefresh was used
|
= Fixed Berserk getting "stuck" when /mcrefresh was used
|
||||||
= Fixed ClassCastException with Taming
|
= Fixed ClassCastException with Taming
|
||||||
= Fixed huge mushroom blocks not being properly tracked
|
= Fixed huge mushroom blocks not being properly tracked
|
||||||
|
= Fixed potion buff option not using the appropriate # of ticks
|
||||||
|
|
||||||
Version 1.4.04
|
Version 1.4.04
|
||||||
+ Added functions to ExperienceAPI for use with offline players
|
+ Added functions to ExperienceAPI for use with offline players
|
||||||
|
@ -503,10 +503,10 @@ public class SkillUtils {
|
|||||||
int ticks = 0;
|
int ticks = 0;
|
||||||
|
|
||||||
if (mcMMOPlayer.getAbilityMode(AbilityType.SUPER_BREAKER)) {
|
if (mcMMOPlayer.getAbilityMode(AbilityType.SUPER_BREAKER)) {
|
||||||
ticks = ((int) (mcMMOPlayer.getProfile().getSkillDATS(AbilityType.SUPER_BREAKER) - System.currentTimeMillis())) / Misc.TIME_CONVERSION_FACTOR;
|
ticks = ((int) (mcMMOPlayer.getProfile().getSkillDATS(AbilityType.SUPER_BREAKER) - (System.currentTimeMillis() / Misc.TIME_CONVERSION_FACTOR))) * 20;
|
||||||
}
|
}
|
||||||
else if (mcMMOPlayer.getAbilityMode(AbilityType.GIGA_DRILL_BREAKER)) {
|
else if (mcMMOPlayer.getAbilityMode(AbilityType.GIGA_DRILL_BREAKER)) {
|
||||||
ticks = ((int) (mcMMOPlayer.getProfile().getSkillDATS(AbilityType.GIGA_DRILL_BREAKER) - System.currentTimeMillis())) / Misc.TIME_CONVERSION_FACTOR;
|
ticks = ((int) (mcMMOPlayer.getProfile().getSkillDATS(AbilityType.GIGA_DRILL_BREAKER) - (System.currentTimeMillis() / Misc.TIME_CONVERSION_FACTOR))) * 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
PotionEffect abilityBuff = new PotionEffect(PotionEffectType.FAST_DIGGING, duration + ticks, amplifier + 10);
|
PotionEffect abilityBuff = new PotionEffect(PotionEffectType.FAST_DIGGING, duration + ticks, amplifier + 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user