Remove bad use of GetAssemblyByName.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user