From e6d7c2c8ecba69198a2b210da33cf51f460dc96d Mon Sep 17 00:00:00 2001 From: peter-r-g Date: Thu, 21 Sep 2023 17:36:50 -0400 Subject: [PATCH] Fix recent editor API changes --- code/Generator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Generator.cs b/code/Generator.cs index ec95f88..c1ac601 100644 --- a/code/Generator.cs +++ b/code/Generator.cs @@ -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; @@ -100,7 +100,7 @@ void AddonFileChanged( object sender, FileSystemEventArgs e ) private static void CleanWatchers() { var stillExists = new List(); - foreach ( var project in Utility.Projects.GetAll() ) + foreach ( var project in EditorUtility.Projects.GetAll() ) stillExists.Add( project ); var projectsToRemove = new Stack();