mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 22:18:27 +01:00
/tg/ pref datums (part 1) (#16219)
* TG Prefs (Step 1: JSON savefiles) * TG Prefs (Step 2: Preference Datum Code) * TG Prefs (Step 3: Convert /datum/client_preferences) * TG Prefs (Step 4: Clean up and finishing touches) * Fix some weird compile errors from the rebase
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user