From 62205150a795303749f6e0dabf55c20c52f4871d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 19:46:23 -0600 Subject: [PATCH] new NPC for ToL support --- src/engine/gameManager/BuildingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index f2d610c5..c86866c8 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -520,7 +520,7 @@ public enum BuildingManager { if (building.getBlueprintUUID() == 0) return false; - if (building.getBlueprint().getMaxSlots() == building.getHirelings().size()) + if (building.getBlueprint().getSlotsForRank(building.getRank()) == building.getHirelings().size()) return false; String pirateName = NPCManager.getPirateName(contract.getMobbaseID());