diff --git a/Content.Client/Actions/ActionsSystem.cs b/Content.Client/Actions/ActionsSystem.cs index 4074e05cf6..de67ffa87c 100644 --- a/Content.Client/Actions/ActionsSystem.cs +++ b/Content.Client/Actions/ActionsSystem.cs @@ -295,7 +295,7 @@ namespace Content.Client.Actions if (!map.TryGet("action", out var actionNode)) continue; - var action = _serialization.Read(actionNode); + var action = _serialization.Read(actionNode, notNullableOverride: true); if (PlayerActions.Actions.TryGetValue(action, out var existingAction)) { @@ -310,7 +310,7 @@ namespace Content.Client.Actions if (!map.TryGet("assignments", out var assignmentNode)) continue; - var nodeAssignments = _serialization.Read>(assignmentNode); + var nodeAssignments = _serialization.Read>(assignmentNode, notNullableOverride: true); foreach (var index in nodeAssignments) { diff --git a/Content.Client/Changelog/ChangelogManager.cs b/Content.Client/Changelog/ChangelogManager.cs index 9652622fa3..59fb7dc182 100644 --- a/Content.Client/Changelog/ChangelogManager.cs +++ b/Content.Client/Changelog/ChangelogManager.cs @@ -81,7 +81,7 @@ namespace Content.Client.Changelog return new List(); var node = (MappingDataNode)yamlData.Documents[0].RootNode.ToDataNode(); - return _serialization.Read>(node["Entries"]); + return _serialization.Read>(node["Entries"], notNullableOverride: true); }); } diff --git a/Content.Shared/Damage/DamageSpecifierDictionarySerializer.cs b/Content.Shared/Damage/DamageSpecifierDictionarySerializer.cs index 48e6f174ee..b7dc0ff79a 100644 --- a/Content.Shared/Damage/DamageSpecifierDictionarySerializer.cs +++ b/Content.Shared/Damage/DamageSpecifierDictionarySerializer.cs @@ -40,7 +40,7 @@ public sealed class DamageSpecifierDictionarySerializer : ITypeReader dict); + serializationManager.Read(typesNode, instanceProvider: () => dict, notNullableOverride: true); } if (!node.TryGet("groups", out var groupsNode)) @@ -48,7 +48,7 @@ public sealed class DamageSpecifierDictionarySerializer : ITypeReader(); - foreach (var entry in serializationManager.Read>(groupsNode)) + foreach (var entry in serializationManager.Read>(groupsNode, notNullableOverride: true)) { if (!prototypeManager.TryIndex(entry.Key, out var group)) { diff --git a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs index 5c072af036..1bbcd03a1c 100644 --- a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs +++ b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Decals IDependencyCollection dependencies, bool skipHook, ISerializationContext? context = null, ISerializationManager.InstantiationDelegate? _ = default) { - var dictionary = serializationManager.Read>>(node, context, skipHook); + var dictionary = serializationManager.Read>>(node, context, skipHook, notNullableOverride: true); var uids = new SortedSet(); var uidChunkMap = new Dictionary();