瀏覽代碼

Bite for Master Angler will no longer display so many decimal places
Fixes #3772

nossr50 6 年之前
父節點
當前提交
303a922165
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java

+ 1 - 0
Changelog.txt

@@ -7,6 +7,7 @@ Key:
   ! Change
   - Removal
 Version 2.1.8
+    Fixed a bug where Bite chance for Master Angler was displaying too many decimal places
     Fixed a bug where Abilities didn't check for permission nodes before activating
     MaxBonusLevel now has specific entries for Standard and Retro in advanced.yml
     MaxBonusLevel for Critical Strikes changed from 75/750 to 100/1000

+ 1 - 1
src/main/java/com/gmail/nossr50/commands/skills/FishingCommand.java

@@ -114,7 +114,7 @@ public class FishingCommand extends SkillCommand {
 
             double luckyModifier = Permissions.lucky(player, PrimarySkillType.FISHING) ? 1.333D : 1.0D;
 
-            biteChance = String.valueOf((rawBiteChance * 100.0D) * luckyModifier);
+            biteChance = percent.format(String.valueOf((rawBiteChance * 100.0D) * luckyModifier));
         }
     }