Remove static Dalamud Services.

This commit is contained in:
Ottermandias 2023-04-22 00:28:05 +02:00
parent c49454fc25
commit 826777b7ee
16 changed files with 111 additions and 114 deletions

View file

@ -293,10 +293,10 @@ public sealed unsafe partial class RedrawService : IDisposable
}
}
private static GameObject? GetLocalPlayer()
private GameObject? GetLocalPlayer()
{
var gPosePlayer = DalamudServices.SObjects[GPosePlayerIdx];
return gPosePlayer ?? DalamudServices.SObjects[0];
var gPosePlayer = _objects[GPosePlayerIdx];
return gPosePlayer ?? _objects[0];
}
public bool GetName(string lowerName, out GameObject? actor)