Skip to content

Commit 3bd0963

Browse files
Fix DeltaPressure serialization spam (space-wizards#41131)
* Fix DeltaPressure serialization spam * Add TODO
1 parent 6046687 commit 3bd0963

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Content.Server/Atmos/Components/DeltaPressureComponent.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ public sealed partial class DeltaPressureComponent : Component
4040
/// for removal while the entity is being deleted.
4141
/// </summary>
4242
/// <remarks>Note that while <see cref="AirtightComponent"/> already stores the grid,
43-
/// we cannot trust it to be available on init or when the entity is being deleted. Tragic.</remarks>
44-
[DataField]
43+
/// we cannot trust it to be available on init or when the entity is being deleted. Tragic.
44+
/// Double note: this is set during ComponentInit and thus does not need to be a datafield
45+
/// or else it will spam serialization.</remarks>
46+
/// TODO ATMOS: Simply use AirtightComponent's GridUID caching and handle entity removal from the processing list on an invalidation system similar to InvalidTiles.
47+
[ViewVariables(VVAccess.ReadOnly)]
4548
public EntityUid? GridUid;
4649

4750
/// <summary>

0 commit comments

Comments
 (0)