diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index c86866c8..354d4f14 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -520,9 +520,10 @@ public enum BuildingManager { if (building.getBlueprintUUID() == 0) return false; - if (building.getBlueprint().getSlotsForRank(building.getRank()) == building.getHirelings().size()) + if (building.getBlueprint().getSlotsForRank(building.getRank()) == building.getHirelings().size()) { + Logger.error("failed at addHireling with contract: " + contract.getContractID()); return false; - + } String pirateName = NPCManager.getPirateName(contract.getMobbaseID()); if (item.getChargesRemaining() > 0) diff --git a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java index 05f6a9c5..694627bf 100644 --- a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java +++ b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java @@ -147,8 +147,10 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { if(contract.getContractID() == 865)//siege engineer override = true; } - if(override == false) + if(override == false) { + Logger.error("failed at override with contract: " + contract.getContractID()); return false; + } } if (!BuildingManager.addHireling(building, player, zone, contract, contractItem))