From e358c08773a8b7e06377c15104462ca3ffe1d729 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 1 Sep 2023 14:23:55 -0400 Subject: [PATCH] Removed msg from handler. --- .../client/handlers/MinionTrainingMsgHandler.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java index f9007eb9..edd7caad 100644 --- a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java +++ b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java @@ -199,18 +199,6 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { DbManager.removeFromCache(toRemove); - - PlayerCharacter petOwner = (PlayerCharacter) toRemove.guardCaptain; - - if (petOwner != null) { - petOwner.setPet(null); - - toRemove.guardCaptain = null; - PetMsg petMsg = new PetMsg(5, null); - Dispatch dispatch = Dispatch.borrow(petOwner, petMsg); - DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); - } - ManageCityAssetsMsg mca1 = new ManageCityAssetsMsg(player, building); mca1.actionType = 3; mca1.setTargetType(building.getObjectType().ordinal());