@@ -38,13 +38,13 @@ public class AuthorableModifiersMod : MelonMod
3838 public static float userArenaRotation = 0f ;
3939
4040 public static DebugTextPopup popupText = null ;
41- private static bool autoLightshowWasEnabled = false ;
41+ public static bool lightshowWasEnabled = false ;
4242 public static class BuildInfo
4343 {
4444 public const string Name = "AuthorableModifiers" ; // Name of the Mod. (MUST BE SET)
4545 public const string Author = "Continuum" ; // Author of the Mod. (Set as null if none)
4646 public const string Company = null ; // Company that made the Mod. (Set as null if none)
47- public const string Version = "1.1.6 " ; // Version of the Mod. (MUST BE SET)
47+ public const string Version = "1.2.0 " ; // Version of the Mod. (MUST BE SET)
4848 public const string DownloadLink = null ; // Download Link for the Mod. (Set as null if none)
4949 }
5050
@@ -76,6 +76,7 @@ public static void ApplyZOffset()
7676 {
7777 if ( ! Config . enabled ) return ;
7878 SetOldOffsets ( ) ;
79+ zOffsetList . Sort ( ( z1 , z2 ) => z1 . startTick . CompareTo ( z2 . startTick ) ) ;
7980 foreach ( Modifier m in zOffsetList )
8081 {
8182 m . Activate ( ) ;
@@ -106,7 +107,7 @@ public static void LoadModifierCues(bool fromRestart = false)
106107 }
107108 foreach ( Modifier m in preloadModifiers )
108109 {
109- m . Activate ( ) ;
110+ m . Activate ( ) ;
110111 }
111112 foreach ( Modifier m in awaitEnableModifiers )
112113 {
@@ -123,11 +124,14 @@ public static void LoadModifierCues(bool fromRestart = false)
123124
124125 private static void EnableAutoLightshow ( bool enable )
125126 {
126- if ( AutoLightshowMod . isEnabled )
127+ if ( Integrations . autoLightshowFound )
127128 {
128- if ( ! enable ) autoLightshowWasEnabled = true ;
129+ if ( AutoLightshowMod . isEnabled )
130+ {
131+ if ( ! enable ) lightshowWasEnabled = true ;
132+ }
129133
130- if ( ! enable || ( enable && autoLightshowWasEnabled ) )
134+ if ( ! enable || ( enable && lightshowWasEnabled ) )
131135 AutoLightshowMod . EnableMod ( enable ) ;
132136 }
133137 }
@@ -201,6 +205,7 @@ public static void Reset()
201205 zOffsetList . Clear ( ) ;
202206 oldOffsetDict . Clear ( ) ;
203207 EnableAutoLightshow ( true ) ;
208+ lightshowWasEnabled = false ;
204209 }
205210
206211 public static void SetOldOffsets ( )
0 commit comments