From 87701b50c67fcf59d3a4789a2ab0c0b016be6516 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 29 Oct 2021 16:40:05 +1100 Subject: [PATCH] Remove naughty IEntity.Dirty calls (#5069) Really this thing should probably be internal because you should never be calling it. --- Content.Server/Tabletop/TabletopSystem.Draggable.cs | 1 - .../Chemistry/EntitySystems/SolutionContainerSystem.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Content.Server/Tabletop/TabletopSystem.Draggable.cs b/Content.Server/Tabletop/TabletopSystem.Draggable.cs index a12292dc6c..773f009dc1 100644 --- a/Content.Server/Tabletop/TabletopSystem.Draggable.cs +++ b/Content.Server/Tabletop/TabletopSystem.Draggable.cs @@ -55,7 +55,6 @@ namespace Content.Server.Tabletop var transform = EntityManager.GetComponent(movedEntity.Uid); var entityCoordinates = new EntityCoordinates(_mapManager.GetMapEntityId(transform.MapID), msg.Coordinates.Position); transform.Coordinates = entityCoordinates; - movedEntity.Dirty(); } private void OnDraggingPlayerChanged(TabletopDraggingPlayerChangedEvent msg) diff --git a/Content.Shared/Chemistry/EntitySystems/SolutionContainerSystem.cs b/Content.Shared/Chemistry/EntitySystems/SolutionContainerSystem.cs index 9b87acdcae..c8f8583d97 100644 --- a/Content.Shared/Chemistry/EntitySystems/SolutionContainerSystem.cs +++ b/Content.Shared/Chemistry/EntitySystems/SolutionContainerSystem.cs @@ -104,7 +104,6 @@ namespace Content.Shared.Chemistry.EntitySystems var filledVolumeFraction = solution.CurrentVolume.Float() / solution.MaxVolume.Float(); appearance.SetData(SolutionContainerVisuals.VisualState, new SolutionContainerVisualState(solution.Color, filledVolumeFraction)); - solutionEntity.Dirty(); } ///