Construction warning cleanup (#12256)
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Content.Server.Construction.Commands
|
||||
}
|
||||
|
||||
var changed = 0;
|
||||
var tagSystem = EntitySystem.Get<TagSystem>();
|
||||
var tagSystem = entityManager.EntitySysManager.GetEntitySystem<TagSystem>();
|
||||
|
||||
foreach (var child in xformQuery.GetComponent(grid.GridEntityId).ChildEntities)
|
||||
{
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Maps;
|
||||
using Content.Shared.Tag;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Construction.Commands;
|
||||
|
||||
@@ -22,8 +19,8 @@ sealed class TileReplaceCommand : IConsoleCommand
|
||||
var player = shell.Player as IPlayerSession;
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
EntityUid? gridId;
|
||||
string tileIdA = "";
|
||||
string tileIdB = "";
|
||||
string tileIdA;
|
||||
string tileIdB;
|
||||
|
||||
switch (args.Length)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@ using Content.Shared.Tag;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Construction.Commands
|
||||
{
|
||||
@@ -17,7 +16,7 @@ namespace Content.Server.Construction.Commands
|
||||
public string Description => "Puts an underplating tile below every wall on a grid.";
|
||||
public string Help => $"Usage: {Command} <gridId> | {Command}";
|
||||
|
||||
public const string TilePrototypeID = "Plating";
|
||||
public const string TilePrototypeId = "Plating";
|
||||
public const string WallTag = "Wall";
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
@@ -65,8 +64,8 @@ namespace Content.Server.Construction.Commands
|
||||
}
|
||||
|
||||
var tileDefinitionManager = IoCManager.Resolve<ITileDefinitionManager>();
|
||||
var tagSystem = EntitySystem.Get<TagSystem>();
|
||||
var underplating = tileDefinitionManager[TilePrototypeID];
|
||||
var tagSystem = entityManager.EntitySysManager.GetEntitySystem<TagSystem>();
|
||||
var underplating = tileDefinitionManager[TilePrototypeId];
|
||||
var underplatingTile = new Tile(underplating.TileId);
|
||||
var changed = 0;
|
||||
foreach (var child in entityManager.GetComponent<TransformComponent>(grid.GridEntityId).ChildEntities)
|
||||
@@ -91,7 +90,7 @@ namespace Content.Server.Construction.Commands
|
||||
var tile = grid.GetTileRef(childTransform.Coordinates);
|
||||
var tileDef = (ContentTileDefinition) tileDefinitionManager[tile.Tile.TypeId];
|
||||
|
||||
if (tileDef.ID == TilePrototypeID)
|
||||
if (tileDef.ID == TilePrototypeId)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user