mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Prevent layer editing.
This commit is contained in:
parent
76cb09b3b5
commit
969ba38ffe
1 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,10 @@ public class PathResolver : IDisposable
|
|||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue