1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

cleanup of trim code (#1283)

This commit is contained in:
Sense101 2021-08-24 18:38:16 +01:00 committed by GitHub
parent d3fb22a54a
commit 736fbaed42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}
}
});