Merged branch master into dev

This commit is contained in:
Danielv123 committed 2016-10-20 19:34:12 +02:00
commit b30d9fa190
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