diff --git a/filterscan.lua b/filterscan.lua index 9531de7..42ee0f3 100644 --- a/filterscan.lua +++ b/filterscan.lua @@ -25,17 +25,23 @@ _addon.author = 'atom0s'; _addon.name = 'filterscan'; -_addon.version = '3.0.0'; +_addon.version = '3.0.1'; require 'common' require 'mobparse' +-- Get the proper install folder.. +local polVersion = AshitaCore:GetConfigurationManager():get_uint32("boot_config", "pol_version", 2); +if (polVersion == 4) then + polVersion = 3; +end + --------------------------------------------------------------------------------------------------- -- Variables --------------------------------------------------------------------------------------------------- local FilterScan = { - FFXiPath = ashita.file.get_install_dir(0, 1) .. '\\', + FFXiPath = ashita.file.get_install_dir(polVersion, 1) .. '\\', MobList = { }, ZoneDatList = require('zonemoblist'), Filter = ''