From 2ae8f536a84a8d15a282e3c8b835a4b8a76156b9 Mon Sep 17 00:00:00 2001 From: NotRyken Date: Sat, 22 Jun 2024 13:04:23 +0800 Subject: [PATCH] Fix interaction rate limits --- .../clientsort/screen/ClothConfigScreenProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/dev/terminalmc/clientsort/screen/ClothConfigScreenProvider.java b/common/src/main/java/dev/terminalmc/clientsort/screen/ClothConfigScreenProvider.java index 26ff78d..9baa226 100644 --- a/common/src/main/java/dev/terminalmc/clientsort/screen/ClothConfigScreenProvider.java +++ b/common/src/main/java/dev/terminalmc/clientsort/screen/ClothConfigScreenProvider.java @@ -42,7 +42,7 @@ static Screen getConfigScreen(Screen parent) { options.interactionRateServer) .setTooltip(localized("option", "interaction_rate.tooltip")) .setErrorSupplier(val -> { - if (val < 0) return Optional.of( + if (val < 1) return Optional.of( localized("option", "error.low")); else if (val > 100) return Optional.of( localized("option", "error.high")); @@ -56,7 +56,7 @@ else if (val > 100) return Optional.of( options.interactionRateClient) .setTooltip(localized("option", "interaction_rate.tooltip")) .setErrorSupplier(val -> { - if (val < 0) return Optional.of( + if (val < 1) return Optional.of( localized("option", "error.low")); else if (val > 100) return Optional.of( localized("option", "error.high"));