cleanup of trim code (#1283)

pull/1286/head
Sense101 3 years ago committed by GitHub
parent d3fb22a54a
commit 736fbaed42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -149,8 +149,9 @@ export class HUDPuzzleEditorSettings extends BaseHUDPart {
assertAlways(false, "Failed to re-place building in trim");
}
if (building.components.ConstantSignal) {
result.components.ConstantSignal.signal = building.components.ConstantSignal.signal;
for (const key in building.components) {
/** @type {import("../../../core/global_registries").Component} */ (building
.components[key]).copyAdditionalStateTo(result.components[key]);
}
}
});

Loading…
Cancel
Save