Skip to content

Commit

Permalink
Fix issue #6
Browse files Browse the repository at this point in the history
Signed-off-by: BackRaw <backraw@gmx.de>
  • Loading branch information
BackRaw committed Jan 5, 2018
1 parent 00b68b9 commit 400411d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/source-python/plugins/udm/udm.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,9 @@ def on_pre_bump_weapon(stack_data):
weapon_data = weapon_manager.by_name(weapon.weapon_name)

# Only block bumping for valid weapons
if weapon_data is not None:
if weapon_data is not None and weapon_data.has_silencer:

if player.random_mode:
if weapon_data.has_silencer:
weapon_manager.set_silencer(weapon, random.randint(0, 1))

# If the player is not in random mode,
Expand Down

0 comments on commit 400411d

Please sign in to comment.