Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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