mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
Use blast mining tier when calc drop multiplier
This commit is contained in:
parent
2c09a0fdb6
commit
ec0eda03ef
@ -45,7 +45,7 @@ public class MiningCommand extends SkillCommand {
|
||||
MiningManager miningManager = UserManager.getPlayer(player).getMiningManager();
|
||||
|
||||
blastMiningRank = miningManager.getBlastMiningTier();
|
||||
bonusTNTDrops = miningManager.getDropMultiplier();
|
||||
bonusTNTDrops = miningManager.getDropMultiplier(miningManager.getBlastMiningTier());
|
||||
oreBonus = percent.format(miningManager.getOreBonus() / 30.0D); // Base received in TNT is 30%
|
||||
// debrisReduction = percent.format(miningManager.getDebrisReduction() / 30.0D); // Base received in TNT is 30%
|
||||
blastDamageDecrease = percent.format(miningManager.getBlastDamageModifier() / 100.0D);
|
||||
|
@ -166,7 +166,7 @@ public class MiningManager extends SkillManager {
|
||||
|
||||
float oreBonus = (float) (getOreBonus() / 100);
|
||||
float debrisReduction = (float) (getDebrisReduction() / 100);
|
||||
int dropMultiplier = getDropMultiplier();
|
||||
int dropMultiplier = getDropMultiplier(getBlastMiningTier());
|
||||
float debrisYield = yield - debrisReduction;
|
||||
|
||||
//Drop "debris" based on skill modifiers
|
||||
|
Loading…
Reference in New Issue
Block a user