Fixed issue with Mining using actual skill level rather than max skill

level
This commit is contained in:
Grant 2012-12-24 12:44:55 -05:00
parent 9136530618
commit f7ea25be61
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,8 @@ Key:
Version 1.3.13
+ Added Craftbukkit 1.4.6 compatibility
+ Added default cases to several switch/case statements
= Fixed issue with missing default cases from several switch/case statements
= Fixed issue with Mining using actual skill level rather than max skill level
! GJ stopped being a lazy slacker and got stuff done
- Removed dead code relating to null profiles
- Removed unused imports

View File

@ -329,7 +329,7 @@ public class Mining {
int skillCheck = Misc.skillCheck(skillLevel, MAX_BONUS_LEVEL);
int randomChance = 100;
int chance = (int) (((double) MAX_CHANCE / (double) MAX_BONUS_LEVEL) * (double) skillLevel);
int chance = (int) (((double) MAX_CHANCE / (double) MAX_BONUS_LEVEL) * (double) skillCheck);
if (player.hasPermission("mcmmo.perks.lucky.mining")) {
randomChance = (int) (randomChance * 0.75);