|
|
|
@ -157,7 +157,13 @@ public enum ForgeManager implements Runnable {
@@ -157,7 +157,13 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
// Forge must be protected in order to access warehouse.
|
|
|
|
|
|
|
|
|
|
return workOrder.vendor.building.protectionState.equals(mbEnums.ProtectionState.PROTECTED); |
|
|
|
|
if (workOrder.production_cost_total.size() > 1) |
|
|
|
|
if (!workOrder.vendor.building.protectionState.equals(mbEnums.ProtectionState.PROTECTED)) { |
|
|
|
|
if (playerCharacter != null) |
|
|
|
|
ErrorPopupMsg.sendErrorPopup(playerCharacter, 193); //193: Production denied: This building must be protected to gain access to warehouse
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static long calcRollingDuration(WorkOrder workOrder) { |
|
|
|
|