Fix component network generator not working for dicts with entityuid values but not keys

This commit is contained in:
DrSmugleaf
2025-01-21 19:09:22 -08:00
parent ee906af16e
commit e03aec47ef

View File

@@ -346,8 +346,8 @@ namespace Robust.Shared.CompNetworkGenerator
if (value is GlobalEntityUidName or GlobalNullableEntityUidName)
{
networkedType = $"Dictionary<{key}, {value}>";
value = valueNullable ? GlobalNetEntityNullableName : GlobalNetEntityName;
networkedType = $"Dictionary<{key}, {value}>";
stateFields.Append($@"
public {networkedType} {name} = default!;");