FIX Chanced the 'lucky.fishing' modifier

If its * 0,75 randomChance will never exeed 99, thus disabling certain
drops like Milk Buckets / Skulls.
This commit is contained in:
Arjan Hofte 2012-11-02 15:55:44 +01:00
parent 67499eeff7
commit ceded46c0c

View File

@ -107,7 +107,7 @@ public class Fishing {
int randomChance = 100;
if (player.hasPermission("mcmmo.perks.lucky.fishing")) {
randomChance = (int) (randomChance * 0.75);
randomChance = (int) (randomChance * 1.75);
}
if (random.nextDouble() * randomChance <= treasure.getDropChance()) {