Cleaning
This commit is contained in:
@@ -101,25 +101,17 @@ end
|
||||
|
||||
local og_ISInventoryPane_refreshContainer = ISInventoryPane.refreshContainer
|
||||
|
||||
---Get the list of items for the container and remove the amputations
|
||||
---Get the list of items for the container and remove the reference to the amputation items
|
||||
function ISInventoryPane:refreshContainer()
|
||||
|
||||
-- Search into the container and remove the reference to the amputation item
|
||||
|
||||
og_ISInventoryPane_refreshContainer(self)
|
||||
|
||||
if TOC_DEBUG.disablePaneMod then return end
|
||||
|
||||
for i=1, #self.itemslist do
|
||||
local cItem = self.itemslist[i]
|
||||
if cItem and cItem.cat == "Amputation" then
|
||||
--print("TOC: current item is an amputation, removing it from the list")
|
||||
table.remove(self.itemslist, i)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return ItemsHandler
|
||||
Reference in New Issue
Block a user