core(fix): Fixes type aliasing, categorizations, and NPE (#444)
- [X] Fixes lookup of type aliases - [X] Fixes categorization - [X] Removes rebuild categorizations - [X] Fixes an NPE with DoHarmful and Combatant Closes #441
This commit is contained in:
parent
24ebdd0f90
commit
5d9ebf062f
17 changed files with 3821 additions and 4881 deletions
|
|
@ -28,6 +28,13 @@ namespace Server.Json
|
|||
throw new JsonException("The JSON value could not be converted to System.Type");
|
||||
}
|
||||
|
||||
var typeName = reader.GetString();
|
||||
var type = AssemblyHandler.FindTypeByName(typeName);
|
||||
if (type == null)
|
||||
{
|
||||
Console.WriteLine("Invalid type {0} deserialized", typeName);
|
||||
}
|
||||
|
||||
return AssemblyHandler.FindTypeByName(reader.GetString());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue