From 74e0f8c5b56081e473d2462acc586ade7f963032 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:59:19 +0200 Subject: [PATCH] Update the maximum amount a shop can sell to 64. Ever since 1.20.5 it is no longer possible to overstack items above 64. --- src/main/java/com/alttd/playershops/config/MessageConfig.java | 2 +- .../com/alttd/playershops/conversation/ConversationManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alttd/playershops/config/MessageConfig.java b/src/main/java/com/alttd/playershops/config/MessageConfig.java index d262450..56f95d0 100644 --- a/src/main/java/com/alttd/playershops/config/MessageConfig.java +++ b/src/main/java/com/alttd/playershops/config/MessageConfig.java @@ -151,7 +151,7 @@ public class MessageConfig { public static String CHANGE_PRICE_PROMPT = "What should the price be? Type cancel to cancel this action."; public static String CHANGE_PRICE_FAILED_PROMPT = "Input must 0 or higher. Type cancel to cancel this action."; public static String CHANGE_AMOUNT_PROMPT = "How many items would you like to sell? Type cancel to cancel this action."; - public static String CHANGE_AMOUNT_FAILED_PROMPT = "Input must be between 1 and 3456. Type cancel to cancel this action."; + public static String CHANGE_AMOUNT_FAILED_PROMPT = "Input must be between 1 and 64. Type cancel to cancel this action."; public static String ADD_BALANCE_PROMPT = "How much money would you like to add? Type cancel to cancel this action."; public static String ADD_BALANCE_FAILED_PROMPT = "You do not have enough balance to deposit this amount. Type cancel to cancel this action."; public static String WITHDRAW_BALANCE_PROMPT = "How much money would you like to withdraw? Type cancel to cancel this action."; diff --git a/src/main/java/com/alttd/playershops/conversation/ConversationManager.java b/src/main/java/com/alttd/playershops/conversation/ConversationManager.java index beaead2..af53829 100644 --- a/src/main/java/com/alttd/playershops/conversation/ConversationManager.java +++ b/src/main/java/com/alttd/playershops/conversation/ConversationManager.java @@ -121,7 +121,7 @@ public class ConversationManager implements ConversationAbandonedListener { @Override protected boolean isNumberValid(ConversationContext context, Number input) { - return input.intValue() > 0 && input.intValue() <= 3456; + return input.intValue() > 0 && input.intValue() <= 64; } @Override