From ce6ffeda301a93914b1a2323b4b27a3597615ad2 Mon Sep 17 00:00:00 2001 From: TtroubleTT Date: Wed, 5 Feb 2025 14:50:41 -0800 Subject: [PATCH] fix quick reload exploit --- EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs b/EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs index 2f9ae3097..00cffd079 100644 --- a/EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs +++ b/EXILED/Exiled.CustomItems/API/Features/CustomWeapon.cs @@ -225,7 +225,7 @@ private void OnInternalReloading(ReloadingWeaponEventArgs ev) private void OnInternalReloaded(ReloadedWeaponEventArgs ev) { - if (!Check(ev.Item)) + if (!Check(ev.Item) || ev.Player.CurrentItem != ev.Item) return; if (ClipSize > 0)