Skip to content

Commit 7a98be5

Browse files
committed
Added a timer for when to exec the retakes cfg
1 parent a56b400 commit 7a98be5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

RetakesPlugin/RetakesPlugin.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,11 @@ private void OnMapStart(string mapName)
451451

452452
ResetState();
453453

454-
// Execute the retakes configuration.
455-
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
454+
AddTimer(1.0f, () =>
455+
{
456+
// Execute the retakes configuration.
457+
Helpers.ExecuteRetakesConfiguration(ModuleDirectory);
458+
});
456459

457460
// If we don't have a map config loaded, load it.
458461
if (!MapConfig.IsLoaded(_mapConfig, Server.MapName))

0 commit comments

Comments
 (0)