mirror of
https://github.com/kepler155c/opus
synced 2024-12-23 23:20:26 +00:00
refined
This commit is contained in:
parent
78c5cc2818
commit
705b600e93
@ -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 = {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user