mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 18:14:25 +01:00
Merge pull request #15226 from Seris02/slotflagcheckproper
fixes equip/dequip noises from not playing
This commit is contained in:
@@ -361,11 +361,11 @@
|
||||
user.position_hud_item(src,slot)
|
||||
if(user.client) user.client.screen |= src
|
||||
if(user.pulling == src) user.stop_pulling()
|
||||
if((slot_flags & slot))
|
||||
if(("[slot]" in slot_flags_enumeration) && (slot_flags & slot_flags_enumeration["[slot]"]))
|
||||
if(equip_sound)
|
||||
playsound(src, equip_sound, 20)
|
||||
playsound(src, equip_sound, 20, preference = /datum/client_preference/pickup_sounds)
|
||||
else
|
||||
playsound(src, drop_sound, 20)
|
||||
playsound(src, drop_sound, 20, preference = /datum/client_preference/pickup_sounds)
|
||||
else if(slot == slot_l_hand || slot == slot_r_hand)
|
||||
playsound(src, pickup_sound, 20, preference = /datum/client_preference/pickup_sounds)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user