From 89acf0c10e7d915b047194ee7ef49eb4ed642c07 Mon Sep 17 00:00:00 2001 From: Len <40720638+destro174@users.noreply.github.com> Date: Wed, 31 Aug 2022 10:10:18 +0200 Subject: [PATCH] Do not validate shoptype input twice, Fixes #4 --- .../alttd/playershops/conversation/ConversationManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/alttd/playershops/conversation/ConversationManager.java b/src/main/java/com/alttd/playershops/conversation/ConversationManager.java index 166669c..f20f76a 100644 --- a/src/main/java/com/alttd/playershops/conversation/ConversationManager.java +++ b/src/main/java/com/alttd/playershops/conversation/ConversationManager.java @@ -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;