|
|
@ -49,9 +49,12 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
|
for (Item hirelings : player.getInventory()) { |
|
|
|
for (Item hirelings : player.getInventory()) { |
|
|
|
if (hirelings.getItemBase().getType().equals(ItemType.CONTRACT)) { |
|
|
|
if (hirelings.getItemBase().getType().equals(ItemType.CONTRACT)) { |
|
|
|
|
|
|
|
|
|
|
|
contract = DbManager.ContractQueries.GET_CONTRACT(hirelings.getItemBase().getUUID()); |
|
|
|
contract = DbManager.ContractQueries.GET_CONTRACT(hirelings.getItemBase().getUUID()); |
|
|
|
|
|
|
|
|
|
|
|
if (contract == null) |
|
|
|
if (contract == null) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (contract.canSlotinBuilding(building)) |
|
|
|
if (contract.canSlotinBuilding(building)) |
|
|
|
ItemLists.add(hirelings); |
|
|
|
ItemLists.add(hirelings); |
|
|
|
} |
|
|
|
} |
|
|
|