mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-28 16:16:47 +01:00
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:
parent
67499eeff7
commit
ceded46c0c
@ -107,7 +107,7 @@ public class Fishing {
|
|||||||
int randomChance = 100;
|
int randomChance = 100;
|
||||||
|
|
||||||
if (player.hasPermission("mcmmo.perks.lucky.fishing")) {
|
if (player.hasPermission("mcmmo.perks.lucky.fishing")) {
|
||||||
randomChance = (int) (randomChance * 0.75);
|
randomChance = (int) (randomChance * 1.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (random.nextDouble() * randomChance <= treasure.getDropChance()) {
|
if (random.nextDouble() * randomChance <= treasure.getDropChance()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user