mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
bruh
This commit is contained in:
parent
60ebdbf107
commit
3d50e0ec82
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ public class IntSettingsGui extends AbstractSettingGui {
|
|||
// minus item
|
||||
GuiItem minusItem;
|
||||
if (now > holder.min) {
|
||||
int planned = Math.min(holder.max, now + step);
|
||||
int planned = Math.max(holder.min, now - step);
|
||||
minusItem = valueEditItem(Material.RED_TERRACOTTA, ValueDisplayType.REMOVE, planned);
|
||||
} else {
|
||||
minusItem = GuiGlobalItems.backgroundItem(Material.BARRIER);
|
||||
|
|
@ -102,7 +102,7 @@ public class IntSettingsGui extends AbstractSettingGui {
|
|||
//plus item
|
||||
GuiItem plusItem;
|
||||
if (now < holder.max) {
|
||||
int planned = Math.max(holder.min, now - step);
|
||||
int planned = Math.min(holder.max, now + step);
|
||||
plusItem = valueEditItem(Material.GREEN_TERRACOTTA, ValueDisplayType.ADD, planned);
|
||||
} else {
|
||||
plusItem = GuiGlobalItems.backgroundItem(Material.BARRIER);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue