From 9624c38e07c7f18ec754cf5ee14d54df31e708dc Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Wed, 8 Jun 2022 20:08:40 +0200 Subject: forgot to migrate vigilance comp layer oops --- .../cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/gui') diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java index a254729..066fdd3 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigSlider.java @@ -20,8 +20,8 @@ public class ConfigSlider extends BasicOption { private boolean dragging = false; private boolean mouseWasDown = false; - public ConfigSlider(Field field, Object parent, String name, String category, String subcategory, int size, float min, float max, int step) { - super(field, parent, name,category, subcategory, size); + public ConfigSlider(Field field, Object parent, String name, String category, String subcategory, float min, float max, int step) { + super(field, parent, name,category, subcategory, 2); this.min = min; this.max = max; this.step = step; @@ -30,7 +30,7 @@ public class ConfigSlider extends BasicOption { public static ConfigSlider create(Field field, Object parent) { Slider slider = field.getAnnotation(Slider.class); - return new ConfigSlider(field, parent, slider.name(), slider.category(), slider.subcategory(), 2, slider.min(), slider.max(), slider.step()); + return new ConfigSlider(field, parent, slider.name(), slider.category(), slider.subcategory(), slider.min(), slider.max(), slider.step()); } @Override -- cgit