Skip to content

Commit

Permalink
Fix recent editor API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-r-g committed Sep 21, 2023
1 parent 057ae54 commit e6d7c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static JsonSerializerOptions JsonOptions
[EditorEvent.Frame]
private static void MonitorProjects()
{
foreach ( var project in Utility.Projects.GetAll() )
foreach ( var project in EditorUtility.Projects.GetAll() )
{
if ( project.Package.PackageType != Package.Type.Gamemode )
continue;
Expand Down Expand Up @@ -100,7 +100,7 @@ void AddonFileChanged( object sender, FileSystemEventArgs e )
private static void CleanWatchers()
{
var stillExists = new List<LocalProject>();
foreach ( var project in Utility.Projects.GetAll() )
foreach ( var project in EditorUtility.Projects.GetAll() )
stillExists.Add( project );

var projectsToRemove = new Stack<LocalProject>();
Expand Down

0 comments on commit e6d7c2c

Please sign in to comment.