Skip to content

Commit

Permalink
fixed workshop map
Browse files Browse the repository at this point in the history
  • Loading branch information
skaen committed Nov 6, 2023
1 parent b6cbc83 commit 7ecc415
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Binary file modified AutoChangeMap/AutoChangeMap.dll
Binary file not shown.
Binary file modified AutoChangeMap/AutoChangeMap.pdb
Binary file not shown.
7 changes: 2 additions & 5 deletions Source/AutoChangeMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 7ecc415

Please sign in to comment.