diff --git a/module.json b/module.json index f60278838..e56bd67da 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "autoanimations", "title": "Automated Animations", "description": "This will automatically run most JB2A Animations such as Melee/Ranged Attacks, Spell Attacks, and Instant Spells", - "version": "0.6.24", + "version": "0.6.25", "author": "Otigon", "url": "https://github.com/otigon/automated-jb2a-animations", "minimumCoreVersion": "0.8.1", diff --git a/src/aa-classes/autorecFunctions.js b/src/aa-classes/autorecFunctions.js index 1912169f9..4fe4d7542 100644 --- a/src/aa-classes/autorecFunctions.js +++ b/src/aa-classes/autorecFunctions.js @@ -127,7 +127,7 @@ export class AutorecFunctions { static _findObjectFromArray(settings, name) { const data = this._combineMenus(settings); //combines all Autorec Menus into a single array const length = data.length; - for (var i = 1; i < length; i++) { + for (var i = 0; i < length; i++) { var newObject = Object.values(data) .sort((a, b) => b.name.replace(/\s+/g, '').length - a.name.replace(/\s+/g, '').length) .find(section => { @@ -156,7 +156,6 @@ export class AutorecFunctions { } } mergedArray.sort((a, b) => b.name.replace(/\s+/g, '').length - a.name.replace(/\s+/g, '').length) - console.log(mergedArray) return mergedArray; }