diff --git a/PulsarModLoader/ModManager.cs b/PulsarModLoader/ModManager.cs index f0232cd..adee0e6 100644 --- a/PulsarModLoader/ModManager.cs +++ b/PulsarModLoader/ModManager.cs @@ -230,7 +230,7 @@ public void LoadModsDirectory(string modsDir) { if (Entry.FullName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase)) { - if (Entry.Length < PMLConfig.MaxLoadSizeBytes.Value) + if (Entry.Length > PMLConfig.MaxLoadSizeBytes.Value) { Logger.Info($"Error: Extraction of {Entry.Name} failed, Too Large!)"); break; @@ -243,12 +243,6 @@ public void LoadModsDirectory(string modsDir) File.Delete(DestinationPath); } - if (!DestinationPath.StartsWith(modsDir, StringComparison.Ordinal)) - { - Logger.Info($"Extraction Path for {Entry.Name} !modsDir"); - break; - } - Entry.ExtractToFile(DestinationPath); } }