avoid static where reasonable

This commit is contained in:
Stanley Dimant 2022-06-14 14:49:58 +02:00
parent 62a58663ff
commit 9ba9e049fb
2 changed files with 6 additions and 5 deletions

View file

@ -43,7 +43,7 @@ namespace Glamourer
Designs = new DesignManager();
Penumbra = new PenumbraAttach(Config.AttachToPenumbra);
PlayerWatcher = PlayerWatchFactory.Create(Dalamud.Framework, Dalamud.ClientState, Dalamud.Objects);
GlamourerIpc = new(Dalamud.Objects, pluginInterface);
GlamourerIpc = new GlamourerIpc(Dalamud.ClientState, Dalamud.Objects, Dalamud.PluginInterface);
if (!Config.ApplyFixedDesigns)
PlayerWatcher.Disable();
@ -64,7 +64,7 @@ namespace Glamourer
public void OnGlamourer(string command, string arguments)
=> _interface.ToggleVisibility();
public static GameObject? GetPlayer(string name)
private static GameObject? GetPlayer(string name)
{
var lowerName = name.ToLowerInvariant();
return lowerName switch