mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
ScriptEngine work and cleanup
This commit is contained in:
@@ -562,9 +562,9 @@ public class DeserializationObject
|
||||
if (id == UUID.Zero)
|
||||
return null;
|
||||
|
||||
string fullTypeName = Encoding.UTF8.GetString(data.FullTypeName, (int)data.FullTypeNameLength);
|
||||
string? fullTypeName = data.FullTypeName != null ? Encoding.UTF8.GetString(data.FullTypeName, (int)data.FullTypeNameLength) : null;
|
||||
|
||||
Type? type = GetTypeFromName(fullTypeName);
|
||||
Type? type = fullTypeName is not null ? GetTypeFromName(fullTypeName) : null;
|
||||
|
||||
if (type == null)
|
||||
return NoValueDeserialized;
|
||||
|
||||
Reference in New Issue
Block a user