Browse Source

RejectTradeRequest has no handler

combat-2
MagicBot 8 months ago
parent
commit
a70585448f
  1. 5
      src/engine/gameManager/TradeManager.java
  2. 3
      src/engine/net/client/ClientMessagePump.java

5
src/engine/gameManager/TradeManager.java

@ -21,11 +21,6 @@ public enum TradeManager {
TRADEMANAGER; TRADEMANAGER;
public static void rejectTradeRequest(RejectTradeRequestMsg msg, ClientConnection origin) {
// TODO Do nothing? If so, delete this method & case above
}
public static void addItemToTradeWindow(AddItemToTradeWindowMsg msg, ClientConnection origin) { public static void addItemToTradeWindow(AddItemToTradeWindowMsg msg, ClientConnection origin) {

3
src/engine/net/client/ClientMessagePump.java

@ -73,9 +73,6 @@ public class ClientMessagePump implements NetMsgHandler {
break; break;
case OPENVAULT: case OPENVAULT:
break; break;
case REQUESTTRADECANCEL:
TradeManager.rejectTradeRequest((RejectTradeRequestMsg) msg, origin);
break;
case TRADEADDOBJECT: case TRADEADDOBJECT:
TradeManager.addItemToTradeWindow((AddItemToTradeWindowMsg) msg, origin); TradeManager.addItemToTradeWindow((AddItemToTradeWindowMsg) msg, origin);
break; break;

Loading…
Cancel
Save