Browse Source

Fix issue caused by recent addons update giving error messages on missing required files.

master
atom0s 7 years ago
parent
commit
97b3cc1d31
  1. 7
      ibar.lua

7
ibar.lua

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
_addon.author = 'Vicrelant';
_addon.name = 'ibar';
_addon.version = '3.0.1';
_addon.version = '3.0.2';
require 'common'
@ -106,7 +106,7 @@ ashita.register_event('load', function() @@ -106,7 +106,7 @@ ashita.register_event('load', function()
local ZoneID = AshitaCore:GetDataManager():GetParty():GetMemberZone(0);
mb_data = require('data.' .. tostring(ZoneID));
local _, mb_data = pcall(require, 'data.' .. tostring(ZoneID));
if (mb_data == nil or type(mb_data) ~= 'table') then
mb_data = { };
end
@ -402,7 +402,8 @@ ashita.register_event('incoming_packet', function(id, size, packet) @@ -402,7 +402,8 @@ ashita.register_event('incoming_packet', function(id, size, packet)
end
-- Update our mob list..
mb_data = require('data.' .. tostring(zoneId));
--mb_data = require('data.' .. tostring(zoneId));
_, mb_data = pcall(require, 'data.' .. tostring(zoneId));
if (mb_data == nil or type(mb_data) ~= 'table') then
mb_data = { };
end

Loading…
Cancel
Save