Removed deprecated "new Double" call.

This commit is contained in:
Paldiu 2022-06-15 08:38:42 -05:00
parent 639bf09e48
commit 661b7bd6a7

View File

@ -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);