diff --git a/core/src/io/anuke/mindustry/mod/ContentParser.java b/core/src/io/anuke/mindustry/mod/ContentParser.java index a8b0d4b2d0..dee6e8b32c 100644 --- a/core/src/io/anuke/mindustry/mod/ContentParser.java +++ b/core/src/io/anuke/mindustry/mod/ContentParser.java @@ -55,7 +55,8 @@ public class ContentParser{ if(fieldOpt(Sounds.class, data) != null) return fieldOpt(Sounds.class, data); if(Vars.headless) return new MockSound(); - String path = "sounds/" + data.asString() + (Vars.ios ? ".mp3" : ".ogg"); + String name = "sounds/" + data.asString(); + String path = Vars.tree.get(name + ".ogg").exists() && !Vars.ios ? name + ".ogg" : name + ".mp3"; ModLoadingSound sound = new ModLoadingSound(); Core.assets.load(path, Sound.class).loaded = result -> { sound.sound = (Sound)result;