Skip to content

Commit

Permalink
udm.on_pre_bump_weapon(): Remove unneeded conditionals
Browse files Browse the repository at this point in the history
Signed-off-by: BackRaw <[email protected]>
  • Loading branch information
BackRaw committed Oct 19, 2018
1 parent faeb945 commit 1b5e895
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/source-python/plugins/udm/udm.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ def on_pre_bump_weapon(stack_data):
# Or configured
else:
inventory_item = player.inventory[weapon_data.tag]

if weapon.get_property_bool('m_bSilencerOn') != inventory_item.silencer_option:
weapon_manager.set_silencer(weapon, inventory_item.silencer_option)
weapon_manager.set_silencer(weapon, inventory_item.silencer_option)


@EntityPreHook(EntityCondition.is_human_player, 'drop_weapon')
Expand Down

0 comments on commit 1b5e895

Please sign in to comment.