diff --git a/src/main/java/meteordevelopment/meteorclient/pathing/BaritoneSettings.java b/src/main/java/meteordevelopment/meteorclient/pathing/BaritoneSettings.java index 58418faaf7..8294edaa12 100644 --- a/src/main/java/meteordevelopment/meteorclient/pathing/BaritoneSettings.java +++ b/src/main/java/meteordevelopment/meteorclient/pathing/BaritoneSettings.java @@ -109,6 +109,7 @@ else if (value instanceof Double) { .name(setting.getName()) .description(getDescription(setting.getName())) .defaultValue((double) setting.defaultValue) + .max(SETTING_MAX_VALUES.getOrDefault(setting.getName(), 10.0)) .sliderMax(SETTING_MAX_VALUES.getOrDefault(setting.getName(), 10.0)) .onChanged(aDouble -> setting.value = aDouble) .onModuleActivated(doubleSetting -> doubleSetting.set((Double) setting.value)) @@ -120,6 +121,7 @@ else if (value instanceof Float) { .name(setting.getName()) .description(getDescription(setting.getName())) .defaultValue(((Float) setting.defaultValue).doubleValue()) + .max(SETTING_MAX_VALUES.getOrDefault(setting.getName(), 10.0)) .sliderMax(SETTING_MAX_VALUES.getOrDefault(setting.getName(), 10.0)) .onChanged(aDouble -> setting.value = aDouble.floatValue()) .onModuleActivated(doubleSetting -> doubleSetting.set(((Float) setting.value).doubleValue()))