mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-31 15:32:35 +02:00
Bugfix for creating products in invalid industries
This commit is contained in:
@ -334,6 +334,9 @@ export function MakeProduct(
|
||||
if (productName == null || productName === "") {
|
||||
throw new Error("You must specify a name for your product!");
|
||||
}
|
||||
if (!division.makesProducts) {
|
||||
throw new Error("You cannot create products for this industry!");
|
||||
}
|
||||
if (isNaN(designInvest)) {
|
||||
throw new Error("Invalid value for design investment");
|
||||
}
|
||||
|
Reference in New Issue
Block a user