Remove bad use of GetAssemblyByName.

This commit is contained in:
Pieter-Jan Briers
2020-01-25 20:39:39 +01:00
parent 6706ff23ce
commit ca57749a3b

View File

@@ -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);
}