From 2d1d34409352b12c9166beb3e72779970e157112 Mon Sep 17 00:00:00 2001 From: matix Date: Thu, 6 Dec 2018 23:51:21 -0800 Subject: [PATCH] settings now save on a per-char basis --- recast.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recast.lua b/recast.lua index 9d35874..f4c6acc 100644 --- a/recast.lua +++ b/recast.lua @@ -92,7 +92,7 @@ end ---------------------------------------------------------------------------------------------------- ashita.register_event('load', function() -- Attempt to load the fps configuration.. - recast_config = ashita.settings.load_merged(_addon.path .. 'settings/settings.json', recast_config); + recast_config = ashita.settings.load_merged(_addon.path .. 'settings/' .. AshitaCore:GetDataManager():GetParty():GetMemberName(0) .. '.settings.json', recast_config); -- Create our font object.. local f = AshitaCore:GetFontManager():Create('__recast_addon'); @@ -117,7 +117,7 @@ ashita.register_event('unload', function() recast_config.font.position = { f:GetPositionX(), f:GetPositionY() }; -- Save the configuration.. - ashita.settings.save(_addon.path .. 'settings/settings.json', recast_config); + ashita.settings.save(_addon.path .. 'settings/' .. AshitaCore:GetDataManager():GetParty():GetMemberName(0) .. '.settings.json', recast_config); -- Unload our font object.. AshitaCore:GetFontManager():Delete('__recast_addon');