Make edge case where building is replaceable but unremovable an assertAlways.
This commit is contained in:
parent
c7e0703c45
commit
54653cf28e
|
@ -203,10 +203,10 @@ export class Blueprint {
|
||||||
"Can not delete entity for blueprint"
|
"Can not delete entity for blueprint"
|
||||||
);
|
);
|
||||||
if (!root.logic.tryDeleteBuilding(contents)) {
|
if (!root.logic.tryDeleteBuilding(contents)) {
|
||||||
logger.error(
|
assertAlways(
|
||||||
|
false,
|
||||||
"Building has replaceable component but is also unremovable in blueprint"
|
"Building has replaceable component but is also unremovable in blueprint"
|
||||||
);
|
);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue