From bf24573e88bbb759be871f0ef6d40d72895b05ae Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 18 Aug 2023 10:31:13 -0400 Subject: [PATCH] Codepath conforms to bootstrap copy of the 5 copies. --- .../client/handlers/MinionTrainingMsgHandler.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java index 5fc47ccc..c0217720 100644 --- a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java +++ b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java @@ -4,7 +4,10 @@ import engine.Enum; import engine.Enum.DispatchChannel; import engine.InterestManagement.WorldGrid; import engine.exception.MsgSendException; -import engine.gameManager.*; +import engine.gameManager.BuildingManager; +import engine.gameManager.DbManager; +import engine.gameManager.NPCManager; +import engine.gameManager.SessionManager; import engine.math.Vector3fImmutable; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -152,17 +155,23 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { // toCreate.despawn(); if (toCreate != null) { + toCreate.setSpawnTime(10); + Building building = BuildingManager.getBuilding(((MinionTrainingMessage) baseMsg).getBuildingID()); int slot = ((NPC) toCreate.npcOwner).getSiegeMinionMap().get(toCreate); + Vector3fImmutable slotLocation; toCreate.building = building; toCreate.parentZone = zone; + BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); slotLocation = building.getLoc().add(buildingLocation.getLocation()); toCreate.setBindLoc(slotLocation); + zone.zoneMobSet.add(toCreate); - MovementManager.translocate(toCreate, toCreate.getBindLoc(), toCreate.npcOwner.region); + toCreate.setLoc(toCreate.getBindLoc()); + //MovementManager.translocate(toCreate, toCreate.getBindLoc(), toCreate.npcOwner.region); } }