2
0
Эх сурвалжийг харах

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

nossr50 6 жил өмнө
parent
commit
303a922165

+ 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));
         }
     }