From 0c4750781a716fadc6c7362207847448b667983a Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 4 Jan 2021 19:50:49 -0500 Subject: [PATCH] Sound cleanup --- core/src/mindustry/audio/SoundControl.java | 6 +----- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/audio/SoundControl.java b/core/src/mindustry/audio/SoundControl.java index 6dc130c53f..c7d61df9b9 100644 --- a/core/src/mindustry/audio/SoundControl.java +++ b/core/src/mindustry/audio/SoundControl.java @@ -130,11 +130,7 @@ public class SoundControl{ Core.audio.soundBus.play(); setupFilters(); }else{ - for(Sound sound : Core.assets.getAll(Sound.class, new Seq<>())){ - if(sound.bus == Core.audio.soundBus){ - sound.stop(); - } - } + Core.audio.soundBus.replay(); } } diff --git a/gradle.properties b/gradle.properties index b16e790ee1..865cb902a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=0f1967eae73429ade796500d5ec352c6a4d1d19d +archash=224199824e400942bc2da35fd6445720f135720d