Skip to content

Commit

Permalink
fix: Threading problems on hotReload
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed May 18, 2024
1 parent 47a86fb commit 94646d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- 2024.05.18 - v1.0.2

fix: Threading problems on hotReload

-- 2024.05.15 - v1.0.1

- fix: Load player properly on reload
Expand Down
6 changes: 2 additions & 4 deletions src-plugin/src/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using K4RPG.Models;
using CounterStrikeSharp.API;

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

if (hotReload)
{
Task.Run(LoadAllPlayersDataAsync);
}
LoadAllPlayersDataAsync();
}

public override void Unload(bool hotReload)
Expand Down
2 changes: 1 addition & 1 deletion src-plugin/src/PluginManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed partial class Plugin : BasePlugin

public override string ModuleAuthor => "K4ryuu";

public override string ModuleVersion => "1.0.1 " +
public override string ModuleVersion => "1.0.2 " +
#if RELEASE
"(release)";
#else
Expand Down

0 comments on commit 94646d0

Please sign in to comment.