Qualify Console's namespace to avoid mixup with plugin's objects

Avoid error when a plugin contains a class called "Console":
Godot.SourceGenerators\Godot.SourceGenerators.GodotPluginsInitializerGenerator\GodotPlugins.Game.generated.cs(32,25): error CS0117: 'Console' does not contain a definition for 'Error'
This commit is contained in:
Treer 2023-01-31 16:23:17 +11:00
parent e9de988020
commit 273df44e1d

View File

@ -48,7 +48,7 @@ namespace GodotPlugins.Game
}
catch (Exception e)
{
Console.Error.WriteLine(e);
System.Console.Error.WriteLine(e);
return false.ToGodotBool();
}
}