Prevent layer editing.

This commit is contained in:
Ottermandias 2023-12-21 10:40:31 +01:00
parent 76cb09b3b5
commit 969ba38ffe

View file

@ -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
{