Earphones stop playing when removed from inventory (#22343)

Fixes https://github.com/Aurorastation/Aurora.3/issues/22300
This commit is contained in:
Batrachophreno
2026-04-26 10:56:23 +00:00
committed by GitHub
parent 8ac9666c11
commit 9ff5a877ca
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -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
+4
View File
@@ -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."