Previous commit except I don't check out the wrong commit this time.

This commit is contained in:
PJB3005
2026-05-05 22:05:12 +02:00
parent 4d9bfb146e
commit 9a00570933
@@ -400,7 +400,7 @@ namespace Robust.Shared.CompNetworkGenerator
if ({name}Value == null)
component.{name} = null!;
else
component.{name} = {nullCast}({name}Value.Clone());");
component.{name} = ({nullCast})({name}Value.Clone());");
shallowClone.Append($@"
{name} = this.{name},");
deltaApply.Add($"fullState.{name} = {name} == null ? null! : {name}.Clone();");
@@ -623,6 +623,7 @@ namespace Robust.Shared.CompNetworkGenerator
[System.Serializable, NetSerializable]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
[RobustAutoGenerated]
public sealed class {{stateName}} : IComponentState
{
{{stateFields}}