Fix for no info in song only packs

master
William Toohey 9 years ago
parent be7c9adb55
commit eb81640c2b
  1. 8
      src/js/ResourcePack.js

@ -358,12 +358,12 @@ Respack.prototype.parseXML = function() {
if(this.songs.length > 0) if(this.songs.length > 0)
this.parseSongFile(dom); this.parseSongFile(dom);
break; break;
case "info": case "images":
if(this.images.length > 0) if(this.images.length > 0)
this.parseInfoFile(dom); this.parseImageFile(dom);
break; break;
case "images": case "info":
this.parseImageFile(dom); this.parseInfoFile(dom);
break; break;
default: default:
console.log("XML found with no songs, images or info"); console.log("XML found with no songs, images or info");

Loading…
Cancel
Save