From eb81640c2bb91b9b8170007133e5eb19784b73c4 Mon Sep 17 00:00:00 2001 From: William Toohey Date: Thu, 31 Mar 2016 15:29:59 +1000 Subject: [PATCH] Fix for no info in song only packs --- src/js/ResourcePack.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/ResourcePack.js b/src/js/ResourcePack.js index b9303c2..3036268 100644 --- a/src/js/ResourcePack.js +++ b/src/js/ResourcePack.js @@ -358,12 +358,12 @@ Respack.prototype.parseXML = function() { if(this.songs.length > 0) this.parseSongFile(dom); break; - case "info": + case "images": if(this.images.length > 0) - this.parseInfoFile(dom); + this.parseImageFile(dom); break; - case "images": - this.parseImageFile(dom); + case "info": + this.parseInfoFile(dom); break; default: console.log("XML found with no songs, images or info");