Skip to content

Commit

Permalink
Small Fix Lua error
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed May 11, 2020
1 parent c47a42d commit 8481f80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Baggins-Filtering.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ function Baggins:IsSpecialBag(bag) --luacheck: ignore 212
--@end-non-retail@]===]

--@retail@
if type(fam)~="number" then
if type(fam)~="number" then --luacheck: ignore 542
-- assume normal bag
self:Debug('IsSpecialBag Got Normal Bag')
elseif fam==0 then
--self:Debug('IsSpecialBag Got Normal Bag')
elseif fam==0 then --luacheck: ignore 542
-- normal bag
self:Debug('IsSpecialBag Got Normal Bag')
--self:Debug('IsSpecialBag Got Normal Bag')
elseif fam==1 or fam==2 then -- quiver / ammo
return prefix.."a", fam
elseif fam==4 then -- soul
Expand Down
4 changes: 2 additions & 2 deletions Baggins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,8 @@ function Baggins:OnBagUpdate(bagid)
-- Update panel text.
-- Optimization mostly for hunters - their bags change for every damn arrow they fire:
local free=GetContainerNumFreeSlots(bagid)
if lastbag==bagid and lastbagfree==free then
self:Debug("OnBagUpdate LastBag and LastBagFree")
if lastbag==bagid and lastbagfree==free then --luacheck: ignore 542
--self:Debug("OnBagUpdate LastBag and LastBagFree")
else
lastbag=bagid
lastbagfree=free
Expand Down

0 comments on commit 8481f80

Please sign in to comment.