From 2ea6492d748a2d86e59e6225ec428f34b8877e2b Mon Sep 17 00:00:00 2001 From: Guigui <113891088+Notgoyome@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:13:33 +0200 Subject: [PATCH] changing set music to only play when different music instead of different name music --- src/scripts/autoload/music_manager.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/autoload/music_manager.gd b/src/scripts/autoload/music_manager.gd index 6af51a66..c7130d8c 100644 --- a/src/scripts/autoload/music_manager.gd +++ b/src/scripts/autoload/music_manager.gd @@ -25,6 +25,8 @@ func _ready(): func set_music(music_name: String): if music_name == current_music_name: return + if streams[music_name] == streams[current_music_name]: + return var stream: AudioStream = streams[music_name] if not stream: