mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Remove unnecessary Syntax
This commit is contained in:
parent
f8ff8969f5
commit
32dcaf14e3
@ -1492,14 +1492,14 @@ public static bool IsValidTypeToGenerate(TypeDefinition variable)
|
||||
// a valid type is a simple class or struct. so we generate only code for types we dont know, and if they are not inside
|
||||
// this assembly it must mean that we are trying to serialize a variable outside our scope. and this will fail.
|
||||
|
||||
string assembly = Weaver.scriptDef.MainModule.Name;
|
||||
string assembly = scriptDef.MainModule.Name;
|
||||
if (variable.Module.Name != assembly)
|
||||
{
|
||||
Log.Error("parameter [" + variable.Name +
|
||||
"] is of the type [" +
|
||||
variable.FullName +
|
||||
"] is not a valid type, please make sure to use a valid type.");
|
||||
Weaver.fail = true;
|
||||
fail = true;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user