diff --git a/Content.Server/GameObjects/Components/Items/HandsComponent.cs b/Content.Server/GameObjects/Components/Items/HandsComponent.cs index 28e5063ba6..d03bdf9c91 100644 --- a/Content.Server/GameObjects/Components/Items/HandsComponent.cs +++ b/Content.Server/GameObjects/Components/Items/HandsComponent.cs @@ -29,10 +29,19 @@ namespace Content.Server.GameObjects private Dictionary hands = new Dictionary(); private IInventoryComponent inventory; + private YamlMappingNode tempParametersMapping; public override void Initialize() { inventory = Owner.GetComponent(); + if (tempParametersMapping != null) + { + foreach (var node in tempParametersMapping.GetNode("hands")) + { + AddHand(node.AsString()); + } + } + base.Initialize(); } @@ -44,10 +53,7 @@ namespace Content.Server.GameObjects public override void LoadParameters(YamlMappingNode mapping) { - foreach (var node in mapping.GetNode("hands")) - { - AddHand(node.AsString()); - } + tempParametersMapping = mapping; base.LoadParameters(mapping); }