Browse Source

Null check added for city

combat-2
MagicBot 7 months ago
parent
commit
c25f325f87
  1. 5
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

5
src/engine/net/client/handlers/ItemProductionMsgHandler.java

@ -393,6 +393,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
WorkOrder workOrder = ForgeManager.itemWorkOrderLookup.get(virtualItem); WorkOrder workOrder = ForgeManager.itemWorkOrderLookup.get(virtualItem);
City city = workOrder.vendor.building.getCity(); City city = workOrder.vendor.building.getCity();
if (city == null)
return;
;
city.transactionLock.writeLock().lock(); city.transactionLock.writeLock().lock();
try { try {

Loading…
Cancel
Save