fixes equip/dequip noises from not playing

This commit is contained in:
Seris02
2023-08-09 22:03:51 +08:00
parent 8ef4ccf3be
commit 610ca114a7
+1 -1
View File
@@ -361,7 +361,7 @@
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)
else