Do not validate shoptype input twice, Fixes #4

This commit is contained in:
Len 2022-08-31 10:10:18 +02:00
parent e49906fc75
commit 89acf0c10e

View File

@ -77,10 +77,6 @@ public class ConversationManager implements ConversationAbandonedListener {
@Override
protected Prompt acceptValidatedInput(ConversationContext context, String input) {
ShopType newType = ShopType.fromString(input);
if (playerShop.getType() == newType) {
context.getForWhom().sendRawMessage("Shoptype was already set to " + newType.toString() + " Type cancel to cancel this action.");
return new ChangeTypePrompt();
}
playerShop.setShopType(newType);
openGui();
return END_OF_CONVERSATION;