Skip to content

Commit

Permalink
Fixed an issue with certain weapons restrictions not working properly. (
Browse files Browse the repository at this point in the history
  • Loading branch information
CookStar committed Nov 13, 2021
1 parent 7c36038 commit d5da6e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/source-python/packages/source-python/weapons/restrictions.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ def _unload_instance(self):
def _on_weapon_bump(args):
"""Return whether the player is allowed to pickup the weapon."""
return weapon_restriction_manager.on_player_bumping_weapon(
make_object(Player, args[0]), edict_from_pointer(args[1]).classname)
make_object(Player, args[0]),
make_object(Weapon, args[1]).weapon_name
)


if GAME_NAME in ('cstrike', 'csgo'):
Expand Down

0 comments on commit d5da6e6

Please sign in to comment.