mirror of
https://github.com/kepler155c/opus
synced 2024-12-24 23:50: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 { }
|
local resources = Util.readTable('resource.limits') or { }
|
||||||
|
|
||||||
for _,v in pairs(resources) do
|
for _,v in pairs(resources) do
|
||||||
|
v.low = tonumber(v.low) -- backwards compatibility
|
||||||
local item = getItem(t, v)
|
local item = getItem(t, v)
|
||||||
if item then
|
if item then
|
||||||
item.low = v.low
|
item.low = v.low
|
||||||
@ -142,6 +143,7 @@ function watchResources(items)
|
|||||||
|
|
||||||
local t = Util.readTable('resource.limits') or { }
|
local t = Util.readTable('resource.limits') or { }
|
||||||
for k, res in pairs(t) do
|
for k, res in pairs(t) do
|
||||||
|
res.low = tonumber(res.low) -- backwards compatibility
|
||||||
local item = getItemWithQty(items, res, res.ignoreDamage)
|
local item = getItemWithQty(items, res, res.ignoreDamage)
|
||||||
if not item then
|
if not item then
|
||||||
item = {
|
item = {
|
||||||
|
@ -97,6 +97,7 @@ function RefinedProvider:listItems()
|
|||||||
for _,v in pairs(list) do
|
for _,v in pairs(list) do
|
||||||
local item = self:getCachedItemDetails(v)
|
local item = self:getCachedItemDetails(v)
|
||||||
if item then
|
if item then
|
||||||
|
item.id - v.name
|
||||||
item.count = v.count
|
item.count = v.count
|
||||||
item.qty = v.count
|
item.qty = v.count
|
||||||
table.insert(items, item)
|
table.insert(items, item)
|
||||||
|
Loading…
Reference in New Issue
Block a user