mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-13 11:04:42 +02:00
Because we don't need that many Random objects.
This commit is contained in:
@ -147,7 +147,7 @@ public class MiningManager {
|
||||
|
||||
float chance = ((float) Mining.DOUBLE_DROPS_MAX_CHANCE / Mining.DOUBLE_DROPS_MAX_BONUS_LEVEL) * eventHandler.skillModifier;
|
||||
|
||||
if (chance > Mining.getRandom().nextInt(randomChance)) {
|
||||
if (chance > Misc.getRandom().nextInt(randomChance)) {
|
||||
eventHandler.processDrops();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user