Pārlūkot izejas kodu

Fixed bug with Blast Mining increasing TNT damage.

GJ 12 gadi atpakaļ
vecāks
revīzija
3a7d88db4f

+ 1 - 0
Changelog.txt

@@ -15,6 +15,7 @@ Version 1.4.03-dev
  = Fixed bug with Smelting not properly tracking furnaces
  = Fixed bug with Smelting not properly tracking furnaces
  = Fixed bug with Blast Mining not dropping blocks correctly
  = Fixed bug with Blast Mining not dropping blocks correctly
  = Fixed bug with custom blocks not working
  = Fixed bug with custom blocks not working
+ = Fixed bug with Blast Mining increasing TNT damage.
  = Fixed bug where Blast Mining was awarding too much XP
  = Fixed bug where Blast Mining was awarding too much XP
  = Fixed bug where triple drops would award twice the amount of experience in Herbalism and Mining
  = Fixed bug where triple drops would award twice the amount of experience in Herbalism and Mining
  = Fixed bug where Green Thumb would consume wheat instead of seeds
  = Fixed bug where Green Thumb would consume wheat instead of seeds

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java

@@ -173,7 +173,7 @@ public class MiningManager extends SkillManager{
     }
     }
 
 
     public int processDemolitionsExpertise(int damage) {
     public int processDemolitionsExpertise(int damage) {
-        return (int) (damage * (100.0 - getBlastDamageModifier()));
+        return (int) (damage * ((100.0D - getBlastDamageModifier()) / 100.0D));
     }
     }
 
 
     /**
     /**