Fix 2 instances of warning CS0162 (#5951)

This commit is contained in:
Tayrtahn
2025-05-23 11:37:08 -04:00
committed by GitHub
parent f1c76ca899
commit 7b571dc80e
2 changed files with 4 additions and 2 deletions

View File

@@ -556,9 +556,10 @@ public sealed class EntityDeserializer :
{
#if !EXCEPTION_TOLERANCE
throw;
#endif
#else
ToDelete.Add(entity);
_log.Error($"Encountered error while loading entity. Yaml uid: {data.YamlId}. Loaded loaded entity: {EntMan.ToPrettyString(entity)}. Error:\n{e}.");
#endif
}
}

View File

@@ -217,9 +217,10 @@ public abstract partial class SharedTransformSystem
{
#if !EXCEPTION_TOLERANCE
throw new Exception("Transform is initialising before map ids have been assigned?");
#endif
#else
Log.Error($"Transform is initialising before map ids have been assigned?");
_map.AssignMapId((uid, mapComp));
#endif
}
xform.MapUid = uid;