comparison Import.lua @ 141:cc82eeeec1c8 v66

Fixed bug with multiple set import.
author yellowfive
date Tue, 06 Nov 2018 15:39:13 -0800
parents c229c759a125
children 35612aee8e15
comparison
equal deleted inserted replaced
140:f40295e81fe0 141:cc82eeeec1c8
141 if Amr.db.char.GearSetups[i].IsBib then 141 if Amr.db.char.GearSetups[i].IsBib then
142 table.remove(Amr.db.char.GearSetups, i) 142 table.remove(Amr.db.char.GearSetups, i)
143 end 143 end
144 end 144 end
145 145
146 for i = 1, #specParts do 146 for i = 1, #specParts do
147 local err = self:ImportCharacter(specParts[i], isTest, true) 147 if specParts[i] ~= "_bib_" then
148 if err ~= nil then 148 local err = self:ImportCharacter(specParts[i], isTest, true)
149 return err 149 if err ~= nil then
150 end 150 return err
151 end
152 end
151 end 153 end
152 154
153 -- ensure that all BiB setups are sorted to the top 155 -- ensure that all BiB setups are sorted to the top
154 local nonBib = {} 156 local nonBib = {}
155 for i = #Amr.db.char.GearSetups, 1, -1 do 157 for i = #Amr.db.char.GearSetups, 1, -1 do