Decimal reagents requirements (#1018)

This commit is contained in:
PrPleGoo
2020-03-28 13:48:57 +01:00
committed by GitHub
parent 09a06c14c5
commit bb0e6917b8
2 changed files with 3 additions and 3 deletions

View File

@@ -166,11 +166,11 @@ namespace Robust.Shared.IoC
/// Thrown if a dependency field on the object is not registered.
/// </exception>
/// <seealso cref="BuildGraph"/>
public static void InjectDependencies(object obj)
public static T InjectDependencies<T>(T obj)
{
DebugTools.Assert(_container.IsValueCreated, NoContextAssert);
_container.Value.InjectDependencies(obj);
return obj;
}
}
}

View File

@@ -467,7 +467,7 @@ namespace Robust.Shared.Serialization
return node.ToString();
// val primitives
if (type.IsPrimitive)
if (type.IsPrimitive || type == typeof(decimal))
return StringToType(type, node.ToString());
// val enum