From c1a14a22e80d70715664771afdffe3b172b726ef Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 18 Aug 2023 13:08:05 -0400 Subject: [PATCH] bugfix: wrong type comparison. --- src/engine/net/client/handlers/MinionTrainingMsgHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java index 1ac56e9f..9a169d4f 100644 --- a/src/engine/net/client/handlers/MinionTrainingMsgHandler.java +++ b/src/engine/net/client/handlers/MinionTrainingMsgHandler.java @@ -165,7 +165,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler { int slot; - if (building.getBlueprint().equals(Enum.BuildingGroup.ARTYTOWER)) + if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.ARTYTOWER)) slot = 2; else slot = ((NPC) siegeMob.npcOwner).getSiegeMinionMap().get(siegeMob) + 1; // First slot is for the captain