mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix invalid API call when manipulating multiple mods at once.
This commit is contained in:
parent
7a3c23d8c9
commit
0ce41f82a6
1 changed files with 1 additions and 1 deletions
|
|
@ -628,7 +628,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
|||
var name = c.Name;
|
||||
|
||||
void Del( ModSettingChange type, int idx, int _, int _2, bool inherited )
|
||||
=> ModSettingChanged?.Invoke( type, name, Penumbra.ModManager[ idx ].ModPath.Name, inherited );
|
||||
=> ModSettingChanged?.Invoke( type, name, idx >= 0 ? Penumbra.ModManager[ idx ].ModPath.Name : string.Empty, inherited );
|
||||
|
||||
_delegates[ c ] = Del;
|
||||
c.ModSettingChanged += Del;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue