diff --git a/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs b/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs index 9ebe0888c9..94f860ab9e 100644 --- a/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs +++ b/Content.Server/GameObjects/Components/Mobs/SpeciesComponent.cs @@ -46,8 +46,7 @@ namespace Content.Server.GameObjects serializer.DataField(ref templatename, "Template", "Human"); - Type type = AppDomain.CurrentDomain.GetAssemblyByName("Content.Server") - .GetType("Content.Server.GameObjects." + templatename); + var type = typeof(SpeciesComponent).Assembly.GetType("Content.Server.GameObjects." + templatename); DamageTemplate = (DamageTemplates) Activator.CreateInstance(type); serializer.DataFieldCached(ref _heatResistance, "HeatResistance", 323); } @@ -102,7 +101,7 @@ namespace Content.Server.GameObjects { return CurrentDamageState.CanSpeak(); } - + bool IActionBlocker.CanDrop() { return CurrentDamageState.CanDrop();