This commit is contained in:
kepler155c@gmail.com 2017-04-25 12:29:43 -04:00
parent 78c5cc2818
commit 705b600e93
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function mergeResources(t)
local resources = Util.readTable('resource.limits') or { }
for _,v in pairs(resources) do
v.low = tonumber(v.low) -- backwards compatibility
local item = getItem(t, v)
if item then
item.low = v.low
@ -142,6 +143,7 @@ function watchResources(items)
local t = Util.readTable('resource.limits') or { }
for k, res in pairs(t) do
res.low = tonumber(res.low) -- backwards compatibility
local item = getItemWithQty(items, res, res.ignoreDamage)
if not item then
item = {

View File

@ -97,6 +97,7 @@ function RefinedProvider:listItems()
for _,v in pairs(list) do
local item = self:getCachedItemDetails(v)
if item then
item.id - v.name
item.count = v.count
item.qty = v.count
table.insert(items, item)