mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Get rid of last statics.
This commit is contained in:
parent
826777b7ee
commit
e66d666d4d
6 changed files with 46 additions and 44 deletions
|
|
@ -33,8 +33,6 @@ public class Penumbra : IDalamudPlugin
|
|||
public static Logger Log { get; private set; } = null!;
|
||||
public static ChatService ChatService { get; private set; } = null!;
|
||||
|
||||
public static CharacterUtility CharacterUtility { get; private set; } = null!;
|
||||
|
||||
public readonly RedrawService RedrawService;
|
||||
public readonly ModFileSystem ModFileSystem;
|
||||
public HttpApi HttpApi = null!;
|
||||
|
|
@ -64,7 +62,6 @@ public class Penumbra : IDalamudPlugin
|
|||
_tmp.Services.GetRequiredService<BackupService>();
|
||||
_config = _tmp.Services.GetRequiredService<Configuration>();
|
||||
_characterUtility = _tmp.Services.GetRequiredService<CharacterUtility>();
|
||||
CharacterUtility = _characterUtility;
|
||||
_tempMods = _tmp.Services.GetRequiredService<TempModManager>();
|
||||
_residentResources = _tmp.Services.GetRequiredService<ResidentResourceManager>();
|
||||
_tmp.Services.GetRequiredService<ResourceManagerService>();
|
||||
|
|
@ -149,7 +146,7 @@ public class Penumbra : IDalamudPlugin
|
|||
{
|
||||
if (_characterUtility.Ready)
|
||||
{
|
||||
_collectionManager.Active.Default.SetFiles();
|
||||
_collectionManager.Active.Default.SetFiles(_characterUtility);
|
||||
_residentResources.Reload();
|
||||
RedrawService.RedrawAll(RedrawType.Redraw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue