From 40f91f439c5ed36a5bdd92f84b67a11e2e8fad41 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:20:09 -0700 Subject: [PATCH] Fix game.playAudio. --- game/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index dbdbe9572..c499bc0a3 100644 --- a/game/game.js +++ b/game/game.js @@ -32638,7 +32638,7 @@ var audio=document.createElement('audio'); audio.autoplay=true; audio.volume=lib.config.volumn_audio/8; - if(str.indexOf('.mp3')!=-1||str.indexOf('.ogg')!=-1){ + if(str.split('/').pop().split('.').length>1){ audio.src=lib.assetURL+'audio'+str; } else{