From 08c0d21db67f27aef7b3c03ec4ad05a78b932670 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Sun, 1 May 2022 12:44:35 +0100 Subject: -1 steps is not good --- .../java/io/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java index 54df53e..27f2559 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java @@ -28,7 +28,8 @@ public class ConfigSlider extends BasicOption { super(field, name, size); this.min = min; this.max = max; - this.step = step - 1; // it adds one more step than actual + if(step > 0) this.step = step - 1; // it adds one more step than actual + else this.step = 0; slideYBoi.setCustomHitbox(28, 8); inputField.onlyAcceptNumbers(true); inputField.setCentered(true); -- cgit