fix bad copy paste

This commit is contained in:
alexcrea 2026-03-24 01:40:22 +01:00
parent f3c6526967
commit 60ebdbf107
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -102,7 +102,7 @@ public class IntSettingsGui extends AbstractSettingGui {
//plus item
GuiItem plusItem;
if (now < holder.max) {
int planned = Math.min(holder.max, now + step);
int planned = Math.max(holder.min, now - step);
plusItem = valueEditItem(Material.GREEN_TERRACOTTA, ValueDisplayType.ADD, planned);
} else {
plusItem = GuiGlobalItems.backgroundItem(Material.BARRIER);