Revert "Merge pull request #16240 from ShadowLarkens/revert"

This reverts commit 885171f985, reversing
changes made to 3e314f8064.
This commit is contained in:
ShadowLarkens
2024-09-07 14:11:15 -07:00
parent 49dda94177
commit f9052dbb60
186 changed files with 5029 additions and 2255 deletions
+2 -2
View File
@@ -137,9 +137,9 @@
// Tell the player to play something via JS.
/datum/media_manager/proc/send_update()
if(!(owner.prefs))
if(!owner.prefs)
return
if(!owner.is_preference_enabled(/datum/client_preference/play_jukebox) && url != "")
if(!owner.prefs.read_preference(/datum/preference/toggle/play_jukebox) && url != "")
return // Don't send anything other than a cancel to people with SOUND_STREAMING pref disabled
MP_DEBUG("<span class='good'>Sending update to mediapanel ([url], [(world.time - start_time) / 10], [volume * source_volume])...</span>")
owner << output(list2params(list(url, (world.time - start_time) / 10, volume * source_volume)), "[WINDOW_ID]:SetMusic")