mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Allow non-locking, negative identifier-locks
This commit is contained in:
parent
5f9cbe9ab1
commit
cff482a2ed
5 changed files with 7 additions and 7 deletions
|
|
@ -117,7 +117,7 @@ public class CollectionEditor(SaveService saveService, CommunicatorService commu
|
|||
public bool CanSetTemporarySettings(ModCollection collection, Mod mod, int key)
|
||||
{
|
||||
var old = collection.GetTempSettings(mod.Index);
|
||||
return old == null || old.Lock == 0 || old.Lock == key;
|
||||
return old is not { Lock: > 0 } || old.Lock == key;
|
||||
}
|
||||
|
||||
/// <summary> Copy the settings of an existing (sourceMod != null) or stored (sourceName) mod to another mod, if they exist. </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue