Skip to content

Commit 1630c9e

Browse files
committed
dont forget to rehook!
1 parent 91bdf51 commit 1630c9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RetakesAllocator/RetakesAllocator.cs

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public override void Load(bool hotReload)
7373
// Must unhook the old functions before reloading and rehooking
7474
CustomFunctions.CCSPlayer_ItemServices_CanAcquireFunc?.Unhook(OnWeaponCanAcquire, HookMode.Pre);
7575
CustomFunctions.LoadCustomGameDataFromJson();
76+
if (Configs.GetConfigData().EnableCanAcquireHook)
77+
{
78+
CustomFunctions.CCSPlayer_ItemServices_CanAcquireFunc?.Hook(OnWeaponCanAcquire, HookMode.Pre);
79+
}
7680
});
7781

7882
if (Configs.GetConfigData().UseOnTickFeatures)

0 commit comments

Comments
 (0)