mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed issue with Mining using actual skill level rather than max skill
level
This commit is contained in:
parent
9136530618
commit
f7ea25be61
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user