Do not validate shoptype input twice, Fixes #4
This commit is contained in:
parent
e49906fc75
commit
89acf0c10e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user