diff --git a/SS14.Server/GameObjects/Component/Renderable/WearableAnimatedSpriteComponent.cs b/SS14.Server/GameObjects/Component/Renderable/WearableAnimatedSpriteComponent.cs index c8b5240bf73..1ad816c8b33 100644 --- a/SS14.Server/GameObjects/Component/Renderable/WearableAnimatedSpriteComponent.cs +++ b/SS14.Server/GameObjects/Component/Renderable/WearableAnimatedSpriteComponent.cs @@ -7,7 +7,7 @@ namespace SS14.Server.GameObjects [IoCTarget] public class WearableAnimatedSpriteComponent : AnimatedSpriteComponent { - public override string Name => "WearableAnimatedSpriteComponent"; + public override string Name => "WearableAnimatedSprite"; public bool IsCurrentlyWorn = false; public bool IsCurrentlyCarried = false; @@ -42,7 +42,7 @@ public override ComponentReplyMessage RecieveMessage(object sender, ComponentMes public override ComponentState GetComponentState() { var masterUid = master != null ? (int?)master.Owner.Uid : null; - return new WearableAnimatedSpriteComponentState(IsCurrentlyWorn, IsCurrentlyCarried, Visible, DrawDepth, Name, CurrentAnimation, Loop, masterUid); + return new WearableAnimatedSpriteComponentState(IsCurrentlyWorn, IsCurrentlyCarried, Visible, DrawDepth, SpriteName, CurrentAnimation, Loop, masterUid); } } } diff --git a/SS14.Shared/Prototypes/EntityPrototype.cs b/SS14.Shared/Prototypes/EntityPrototype.cs index 99801e80a3c..3a90d1fb34c 100644 --- a/SS14.Shared/Prototypes/EntityPrototype.cs +++ b/SS14.Shared/Prototypes/EntityPrototype.cs @@ -1,4 +1,4 @@ -using SFML.System; +using SFML.System; using SS14.Shared.IoC; using SS14.Shared.IoC.Exceptions; using SS14.Shared.ContentLoader; @@ -9,6 +9,7 @@ using System.Linq; using System.Threading; using YamlDotNet.RepresentationModel; +using SS14.Shared.Log; namespace SS14.Shared.GameObjects { @@ -256,6 +257,7 @@ public Entity CreateEntity(EntityManager manager) // Ignore nonexistant ones. // This is kind of inefficient but we'll do the sanity on prototype creation // Once the dependency injection stack is fixed. + LogManager.Log(string.Format("Unable to load prototype component. UnknowComponentException occured for componentKey `{0}`", componentData.Key)); continue; } component.LoadParameters(componentData.Value);