Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadnix-was-taken committed May 28, 2021
1 parent 7843698 commit 0314f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions ParticleOverdrive/Controllers/WorldParticleController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void Init(bool state)

private ParticleSystem Find()
{
// This needs updating, as this doesn't find inactive Objects and the menu object persists now
ParticleSystem[] pss = FindObjectsOfType<ParticleSystem>();
return pss.Where(x => x.name == "DustPS").FirstOrDefault();
}
Expand Down
7 changes: 1 addition & 6 deletions ParticleOverdrive/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class Plugin
public static GameObject _controller;
public static WorldParticleController _particleController;
public static CameraNoiseController _noiseController;
internal static bool IsBSMLMenuLoaded = false;

#region Private Field Getters
internal static RefGetter<NoteCutParticlesEffect, ParticleSystem> GetExplosionPS;
Expand Down Expand Up @@ -138,6 +137,7 @@ public void OnStart()
}

AddEvents();
BSMLSettings.instance.AddSettingsMenu("Particle Overdrive", "ParticleOverdrive.UI.POUI.bsml", UI.POUI.instance);
}

[OnExit]
Expand All @@ -148,11 +148,6 @@ public void OnExit()

public void OnActiveSceneChanged(Scene prevScene, Scene scene)
{
if (scene.name == "MainMenu" && !IsBSMLMenuLoaded)
{
BSMLSettings.instance.AddSettingsMenu("Particle Overdrive", "ParticleOverdrive.UI.POUI.bsml", UI.POUI.instance);
IsBSMLMenuLoaded = true;
}
LoadConfig();
if (!CameraNoiseWorldParticlesEnabled)
return;
Expand Down

0 comments on commit 0314f65

Please sign in to comment.