From ec6a7e79d655d11826da2eaa46cb080f7c92f38a Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 15 Jan 2013 10:34:13 -0500 Subject: [PATCH] ACTUALLY fix issue with TNT damage - Fixes #510. --- .../skills/mining/DemoltionsExpertiseEventHandler.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/mining/DemoltionsExpertiseEventHandler.java b/src/main/java/com/gmail/nossr50/skills/mining/DemoltionsExpertiseEventHandler.java index 554f0cec5..97384e7fb 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/DemoltionsExpertiseEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/DemoltionsExpertiseEventHandler.java @@ -17,12 +17,8 @@ public class DemoltionsExpertiseEventHandler { } protected void calculateDamageModifier() { - if (skillLevel < BlastMining.BLAST_MINING_RANK_4) { - return; - } - if (skillLevel >= BlastMining.BLAST_MINING_RANK_8) { - damageModifier = 0; + damageModifier = 0.0; } else if (skillLevel >= BlastMining.BLAST_MINING_RANK_6) { damageModifier = 0.25; @@ -31,7 +27,7 @@ public class DemoltionsExpertiseEventHandler { damageModifier = 0.5; } else { - damageModifier = 1; + damageModifier = 1.0; } }