From 8ccc7eff1afafeaad307fc8be00db0e440d14e16 Mon Sep 17 00:00:00 2001 From: NockyCZ <63038995+NockyCZ@users.noreply.github.com> Date: Sun, 18 Aug 2024 23:09:50 +0200 Subject: [PATCH] Hotfix: v1.1.7a --- source/Deathmatch/Deathmatch.cs | 3 ++- source/Deathmatch/Functions/Players.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Deathmatch/Deathmatch.cs b/source/Deathmatch/Deathmatch.cs index a7f7751..13a1d3e 100644 --- a/source/Deathmatch/Deathmatch.cs +++ b/source/Deathmatch/Deathmatch.cs @@ -21,7 +21,7 @@ public partial class Deathmatch : BasePlugin, IPluginConfig { public override string ModuleName => "Deathmatch Core"; public override string ModuleAuthor => "Nocky"; - public override string ModuleVersion => "1.1.7"; + public override string ModuleVersion => "1.1.7a"; public void OnConfigParsed(DeathmatchConfig config) { @@ -67,6 +67,7 @@ public override void Load(bool hotReload) AddCommandListener("autobuy", OnRandomWeapons); bool mapLoaded = false; + RegisterListener(() => { mapLoaded = false; }); RegisterListener(mapName => { if (!mapLoaded) diff --git a/source/Deathmatch/Functions/Players.cs b/source/Deathmatch/Functions/Players.cs index a1f4d66..240cb1a 100644 --- a/source/Deathmatch/Functions/Players.cs +++ b/source/Deathmatch/Functions/Players.cs @@ -492,4 +492,4 @@ public bool IsHaveBlockedRandomWeaponsIntegration(CCSPlayerController player) return true; } } -} +} \ No newline at end of file