From 661b7bd6a733e4de6369888ef424e7c13a73c626 Mon Sep 17 00:00:00 2001 From: Paldiu Date: Wed, 15 Jun 2022 08:38:42 -0500 Subject: [PATCH] Removed deprecated "new Double" call. --- src/main/java/io/github/simplex/luck/player/Luck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/simplex/luck/player/Luck.java b/src/main/java/io/github/simplex/luck/player/Luck.java index 030b9b6..2462aaf 100644 --- a/src/main/java/io/github/simplex/luck/player/Luck.java +++ b/src/main/java/io/github/simplex/luck/player/Luck.java @@ -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);