|
|
@ -126,7 +126,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
// Check if contract can be slotted in this building
|
|
|
|
// Check if contract can be slotted in this building
|
|
|
|
Logger.error("inserting contract: " + contract.getContractID()); |
|
|
|
//Logger.error("inserting contract: " + contract.getContractID());
|
|
|
|
if (contract.canSlotinBuilding(building) == false) { |
|
|
|
if (contract.canSlotinBuilding(building) == false) { |
|
|
|
boolean override = false; |
|
|
|
boolean override = false; |
|
|
|
if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.TOL)) { |
|
|
|
if (building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.TOL)) { |
|
|
@ -152,7 +152,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Logger.error("override successful: " + contract.getContractID()); |
|
|
|
//Logger.error("override successful: " + contract.getContractID());
|
|
|
|
if (!BuildingManager.addHireling(building, player, zone, contract, contractItem)) |
|
|
|
if (!BuildingManager.addHireling(building, player, zone, contract, contractItem)) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|