]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove GridModifiedEvent (#21291)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sat, 28 Oct 2023 02:57:57 +0000 (13:57 +1100)
committerGitHub <noreply@github.com>
Sat, 28 Oct 2023 02:57:57 +0000 (13:57 +1100)
Content.Shared/SubFloor/SharedSubFloorHideSystem.cs

index 0fd7a2e93280477978d1cf9ef1055227dbcd85a5..02b4e6179018a1824fba4437caccfd1ec03732be 100644 (file)
@@ -24,7 +24,6 @@ namespace Content.Shared.SubFloor
         {
             base.Initialize();
 
-            SubscribeLocalEvent<GridModifiedEvent>(OnGridChanged);
             SubscribeLocalEvent<TileChangedEvent>(OnTileChanged);
             SubscribeLocalEvent<SubFloorHideComponent, ComponentStartup>(OnSubFloorStarted);
             SubscribeLocalEvent<SubFloorHideComponent, ComponentShutdown>(OnSubFloorTerminating);
@@ -97,14 +96,6 @@ namespace Content.Shared.SubFloor
             UpdateTile(MapManager.GetGrid(args.NewTile.GridUid), args.NewTile.GridIndices);
         }
 
-        private void OnGridChanged(GridModifiedEvent args)
-        {
-            foreach (var modified in args.Modified)
-            {
-                UpdateTile(args.Grid, modified.position);
-            }
-        }
-
         /// <summary>
         ///     Update whether a given entity is currently covered by a floor tile.
         /// </summary>