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:
parent
d3fb22a54a
commit
736fbaed42
@ -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…
Reference in New Issue
Block a user