mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Earphones stop playing when removed from inventory (#22343)
Fixes https://github.com/Aurorastation/Aurora.3/issues/22300
This commit is contained in:
@@ -73,6 +73,11 @@
|
||||
to_chat(user, SPAN_WARNING("There's already a music cartridge in there."))
|
||||
..()
|
||||
|
||||
/// Ensure we stop playing music when dropped for any reason.
|
||||
/obj/item/clothing/ears/earphones/dropped(mob/user)
|
||||
. = ..()
|
||||
StopPlaying()
|
||||
|
||||
/obj/item/clothing/ears/earphones/proc/read_music_cartridge(obj/item/music_cartridge/cartridge, mob/user)
|
||||
StopPlaying() // New cartridge in, so clean up our sound token if it hasn't already been for some reason
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
author: Batrachophrenoboocosmomachia
|
||||
delete-after: True
|
||||
changes:
|
||||
- bugfix: "Earphones now automatically stop playing when dropped/thrown/etc. to address a few instances of audio strangeness."
|
||||
Reference in New Issue
Block a user