mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-26 05:07:40 +00:00 
			
		
		
		
	refined
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com