diff --git a/src/main/java/chronosacaria/mcdw/api/util/CleanlinessHelper.java b/src/main/java/chronosacaria/mcdw/api/util/CleanlinessHelper.java index 98f09589..83e7e73e 100644 --- a/src/main/java/chronosacaria/mcdw/api/util/CleanlinessHelper.java +++ b/src/main/java/chronosacaria/mcdw/api/util/CleanlinessHelper.java @@ -30,6 +30,7 @@ import net.minecraft.text.Text; import net.minecraft.util.Formatting; import net.minecraft.util.Identifier; +import net.minecraft.util.math.random.Random; import java.util.*; import java.util.concurrent.atomic.AtomicBoolean; @@ -37,7 +38,8 @@ import static chronosacaria.mcdw.Mcdw.CONFIG; public class CleanlinessHelper { - static final Random random = new Random(); + @SuppressWarnings("deprecation") + public static final Random random = Random.createThreadSafe(); public static boolean percentToOccur (int chance) { return random.nextInt(100) < chance;