]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix DeltaPressure serialization spam (#41131)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Sun, 26 Oct 2025 23:02:24 +0000 (16:02 -0700)
committerGitHub <noreply@github.com>
Sun, 26 Oct 2025 23:02:24 +0000 (23:02 +0000)
* Fix DeltaPressure serialization spam

* Add TODO

Content.Server/Atmos/Components/DeltaPressureComponent.cs

index 0d2debe08ab6cd8fa0f743862201509ee8773e99..cfe67a855b4bfd977fde333a88ddba81795b5766 100644 (file)
@@ -40,8 +40,11 @@ public sealed partial class DeltaPressureComponent : Component
     /// for removal while the entity is being deleted.
     /// </summary>
     /// <remarks>Note that while <see cref="AirtightComponent"/> already stores the grid,
-    /// we cannot trust it to be available on init or when the entity is being deleted. Tragic.</remarks>
-    [DataField]
+    /// we cannot trust it to be available on init or when the entity is being deleted. Tragic.
+    /// Double note: this is set during ComponentInit and thus does not need to be a datafield
+    /// or else it will spam serialization.</remarks>
+    /// TODO ATMOS: Simply use AirtightComponent's GridUID caching and handle entity removal from the processing list on an invalidation system similar to InvalidTiles.
+    [ViewVariables(VVAccess.ReadOnly)]
     public EntityUid? GridUid;
 
     /// <summary>