Fix map serialization error log (#3967)

This commit is contained in:
Leon Friedrich
2023-04-24 19:29:57 +12:00
committed by GitHub
parent eae1e7c108
commit be9f0a988a
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ internal sealed class MapSerializationContext : ISerializationContext, IEntityLo
if (!_entityUidMap.TryGetValue(value, out var entityUidMapped))
{
// Terrible hack to mute this error on the grids themselves when serializing blueprints.
if (value.IsValid() || CurrentWritingComponent != "Transform")
if (!value.IsValid() && CurrentWritingComponent != "Transform")
{
Logger.ErrorS("map", "Encountered an invalid entityUid '{0}' while serializing a map.", value);
}