diff --git a/AutoChangeMap/AutoChangeMap.dll b/AutoChangeMap/AutoChangeMap.dll index 8293961..dd04b98 100644 Binary files a/AutoChangeMap/AutoChangeMap.dll and b/AutoChangeMap/AutoChangeMap.dll differ diff --git a/AutoChangeMap/AutoChangeMap.pdb b/AutoChangeMap/AutoChangeMap.pdb index 30719be..2421053 100644 Binary files a/AutoChangeMap/AutoChangeMap.pdb and b/AutoChangeMap/AutoChangeMap.pdb differ diff --git a/Source/AutoChangeMap.cs b/Source/AutoChangeMap.cs index 83834bf..d179a3d 100644 --- a/Source/AutoChangeMap.cs +++ b/Source/AutoChangeMap.cs @@ -12,7 +12,7 @@ namespace AutoMapChanger; public class AutoMapChanger : BasePlugin { public override string ModuleName => "Auto Map Changer"; - public override string ModuleVersion => "1.0.4"; + public override string ModuleVersion => "1.0.5"; public override string ModuleAuthor => "skaen"; private static Config _config = null!; @@ -109,10 +109,7 @@ private Config CreateConfig(string configPath) } private bool IsWorkshopMap(string selectMap) { - var mapsPath = Path.Combine(ModuleDirectory, "maps.txt"); - var mapList = File.ReadAllLines(mapsPath); - - return mapList.Any(map => map.Trim() == "ws:" + selectMap); + return selectMap.Trim() == "ws:" + selectMap; } public void Log(string message) {