Report fluids correctly in Inventory Combinator

This commit is contained in:
Thomas Deal committed 2016-10-20 13:31:33 -04:00
1 parent 67e5916790
commit 854ed8fdd0
1 file changed
+4 -1
+4 -1
View File
@@ -443,9 +443,12 @@ function UpdateInvCombinators()
end
local items = game.item_prototypes
local fluids = game.fluid_prototypes
if global.invdata then
for name,count in pairs(global.invdata) do
if items[name] then
if fluids[name] then
invframe[#invframe+1] = {count=count,index=#invframe+1,signal={name=name,type="fluid"}}
elseif items[name] then
invframe[#invframe+1] = {count=count,index=#invframe+1,signal={name=name,type="item"}}
end
end