Skip to content

Commit

Permalink
Prevent layer editing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Dec 21, 2023
1 parent 76cb09b commit 969ba38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Penumbra/Interop/PathResolving/PathResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public bool CollectionByName(string name, [NotNullWhen(true)] out ModCollection?
if (!_config.EnableMods)
return (null, ResolveData.Invalid);

// Do not allow manipulating layers to prevent very obvious cheating and softlocks.
if (resourceType is ResourceType.Lvb or ResourceType.Lgb or ResourceType.Sgb)
return (null, ResolveData.Invalid);

path = path.ToLower();
return category switch
{
Expand Down

0 comments on commit 969ba38

Please sign in to comment.