From 3ccbd6bb51f781d8c18d0389e5d8e79391b7c56c Mon Sep 17 00:00:00 2001 From: DoKM Date: Tue, 3 Aug 2021 21:10:22 +0200 Subject: Fix chroma speed being chroma duration instead --- .../moulberry/notenoughupdates/options/seperateSections/Misc.java | 2 +- src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java index 6a083cae..c9ee8c9b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java @@ -66,7 +66,7 @@ public class Misc { maxValue = 500, minStep = 10 ) - public int chromaSpeed = 100; + public int chromaSpeed2 = 400; @Expose @ConfigOption( diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index a4af51ca..fc8e2fa3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -234,7 +234,7 @@ public class Utils { long currentTimeMillis = System.currentTimeMillis(); if(startTime == 0) startTime = currentTimeMillis; - int chromaSpeed = NotEnoughUpdates.INSTANCE.config.misc.chromaSpeed; + int chromaSpeed = 510 - NotEnoughUpdates.INSTANCE.config.misc.chromaSpeed2; if(chromaSpeed < 10) chromaSpeed = 10; if(chromaSpeed > 5000) chromaSpeed = 5000; -- cgit