Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 94646d0

Browse files
committed
fix: Threading problems on hotReload
1 parent 47a86fb commit 94646d0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- 2024.05.18 - v1.0.2
2+
3+
fix: Threading problems on hotReload
4+
15
-- 2024.05.15 - v1.0.1
26

37
- fix: Load player properly on reload

src-plugin/src/Plugin.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using K4RPG.Models;
77
using CounterStrikeSharp.API;
88

9-
[MinimumApiVersion(200)]
9+
[MinimumApiVersion(227)]
1010
public sealed partial class Plugin : BasePlugin, IPluginConfig<PluginConfig>
1111
{
1212
//** ? PLUGIN GLOBALS */
@@ -46,9 +46,7 @@ public override void Load(bool hotReload)
4646
Initialize_DynamicEvents();
4747

4848
if (hotReload)
49-
{
50-
Task.Run(LoadAllPlayersDataAsync);
51-
}
49+
LoadAllPlayersDataAsync();
5250
}
5351

5452
public override void Unload(bool hotReload)

src-plugin/src/PluginManifest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public sealed partial class Plugin : BasePlugin
1010

1111
public override string ModuleAuthor => "K4ryuu";
1212

13-
public override string ModuleVersion => "1.0.1 " +
13+
public override string ModuleVersion => "1.0.2 " +
1414
#if RELEASE
1515
"(release)";
1616
#else

0 commit comments

Comments
 (0)