mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2024-11-13 22:13:32 +00:00
Removed deprecated "new Double" call.
This commit is contained in:
parent
639bf09e48
commit
661b7bd6a7
@ -128,7 +128,7 @@ public class Luck implements LuckContainer {
|
||||
.stream()
|
||||
.filter(p -> p.getType().equals(PotionEffectType.LUCK))
|
||||
.findFirst()
|
||||
.ifPresent(p -> multiplier.updateAndGet(v -> new Double((double) (v + p.getAmplifier()))));
|
||||
.ifPresent(p -> multiplier.updateAndGet(v -> (v + p.getAmplifier())));
|
||||
}
|
||||
|
||||
return ((newVal * multiplier.get()) >= actual);
|
||||
|
Loading…
Reference in New Issue
Block a user