From ec0eda03ef89c0646b9f093adbde167559b56aeb Mon Sep 17 00:00:00 2001 From: Tom Wilkinson <33894549+TDWilkinson99@users.noreply.github.com> Date: Sat, 9 Jul 2022 02:25:13 +0100 Subject: [PATCH] Use blast mining tier when calc drop multiplier --- .../java/com/gmail/nossr50/commands/skills/MiningCommand.java | 2 +- .../java/com/gmail/nossr50/skills/mining/MiningManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java index 5e7a14a7a..944943c03 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/MiningCommand.java @@ -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); diff --git a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java index 6205173aa..8c41eb1c6 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java @@ -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