Fix a bunch of logger warnings (#17691)
This commit is contained in:
@@ -17,7 +17,7 @@ public sealed class ContainerFillSystem : EntitySystem
|
||||
{
|
||||
if (!TryComp(uid, out ContainerManagerComponent? containerComp))
|
||||
{
|
||||
Logger.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} has no {nameof(ContainerManagerComponent)}.");
|
||||
Log.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} has no {nameof(ContainerManagerComponent)}.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public sealed class ContainerFillSystem : EntitySystem
|
||||
{
|
||||
if (!_containerSystem.TryGetContainer(uid, contaienrId, out var container, containerComp))
|
||||
{
|
||||
Logger.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} is missing a container ({contaienrId}).");
|
||||
Log.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} is missing a container ({contaienrId}).");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public sealed class ContainerFillSystem : EntitySystem
|
||||
var ent = Spawn(proto, coords);
|
||||
if (!container.Insert(ent, EntityManager, null, xform))
|
||||
{
|
||||
Logger.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} failed to insert an entity: {ToPrettyString(ent)}.");
|
||||
Log.Error($"Entity {ToPrettyString(uid)} with a {nameof(ContainerFillComponent)} failed to insert an entity: {ToPrettyString(ent)}.");
|
||||
Transform(ent).AttachToGridOrMap();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user