소스 검색

Fixed bug with Blast Mining increasing TNT damage.

GJ 12 년 전
부모
커밋
3a7d88db4f
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java

+ 1 - 0
Changelog.txt

@@ -15,6 +15,7 @@ Version 1.4.03-dev
  = Fixed bug with Smelting not properly tracking furnaces
  = Fixed bug with Blast Mining not dropping blocks correctly
  = 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 triple drops would award twice the amount of experience in Herbalism and Mining
  = 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) {
-        return (int) (damage * (100.0 - getBlastDamageModifier()));
+        return (int) (damage * ((100.0D - getBlastDamageModifier()) / 100.0D));
     }
 
     /**