From 228a6d44bdeb52fe68d4930e96fe7863f8eca7bc Mon Sep 17 00:00:00 2001 From: mentgah <52985409+mentgah@users.noreply.github.com> Date: Sun, 25 May 2025 21:50:10 +0200 Subject: [PATCH] Synthesizer bugfix (#37623) --- .../bayinstruments/real_instrumentssynthesized/synthesizer.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/bayinstruments/real_instrumentssynthesized/synthesizer.dm b/code/modules/bayinstruments/real_instrumentssynthesized/synthesizer.dm index dcadd190692..9f1e4c10251 100644 --- a/code/modules/bayinstruments/real_instrumentssynthesized/synthesizer.dm +++ b/code/modules/bayinstruments/real_instrumentssynthesized/synthesizer.dm @@ -244,6 +244,8 @@ /obj/structure/synthesized_instrument/synthesizer/ui_interact(mob/user, ui_key = "instrument", var/datum/nanoui/ui = null, var/force_open = 0) + if(!user || !anchored) + return var/list/data data = list( "playback" = list( @@ -360,4 +362,4 @@ /obj/structure/synthesized_instrument/synthesizer/shouldStopPlaying(mob/user) - return !((src && in_range(src, user) && anchored) || player.song.autorepeat) + return !((src && in_range(src, user) && anchored))