From 663aafb4c8b868002d76b181076ac9b44bbc4c52 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 21 Jan 2023 10:13:00 -0500 Subject: [PATCH] Removed leftover code from message pump. --- src/engine/net/client/ClientMessagePump.java | 37 -------------------- 1 file changed, 37 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 0b0bc992..0d89f91d 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -262,9 +262,6 @@ public class ClientMessagePump implements NetMsgHandler { case VENDORDIALOG: VendorDialogMsg.replyDialog((VendorDialogMsg) msg, origin); break; - case ARCMINECHANGEPRODUCTION: - changeMineProduction((ArcMineChangeProductionMsg) msg, origin); - break; case SHOPLIST: openBuyFromNPCWindow((BuyFromNPCWindowMsg) msg, origin); break; @@ -1420,40 +1417,6 @@ boolean updateCity = false; } - private static void changeMineProduction(ArcMineChangeProductionMsg msg, ClientConnection origin) { - - PlayerCharacter sourcePlayer = SessionManager.getPlayerCharacter(origin); - - if (sourcePlayer == null) - return; - - //TODO verify this against the warehouse? - - if (GuildStatusController.isInnerCouncil(sourcePlayer.getGuildStatus()) == false) // is this only GL? - return; - - Mine mine = Mine.getMine(msg.getMineID()); - - if (mine == null) - return; - - //make sure mine belongs to guild - if (mine.getOwningGuild().isEmptyGuild() || mine.getOwningGuild().getObjectUUID() != sourcePlayer.getGuild().getObjectUUID()) - return; - - //make sure valid resource - Resource r = Resource.resourceByHash.get(msg.getResourceHash()); - - if (r == null) - return; - - //update resource - mine.changeProductionType(r); - Mine.setLastChange(System.currentTimeMillis()); - Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); - DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); - } - private static void randomRoll(RandomMsg msg, ClientConnection origin) throws MsgSendException { PlayerCharacter source = origin.getPlayerCharacter();