mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2024-11-22 09:55:01 +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()
|
.stream()
|
||||||
.filter(p -> p.getType().equals(PotionEffectType.LUCK))
|
.filter(p -> p.getType().equals(PotionEffectType.LUCK))
|
||||||
.findFirst()
|
.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);
|
return ((newVal * multiplier.get()) >= actual);
|
||||||
|
Loading…
Reference in New Issue
Block a user