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.
This commit is contained in:
Len 2024-08-01 18:59:19 +02:00 committed by destro174
parent 6aa2e294b4
commit 74e0f8c5b5
2 changed files with 2 additions and 2 deletions

View File

@ -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.";

View File

@ -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