From 854ed8fdd0e390d0e8d745a444f9ab8938196e72 Mon Sep 17 00:00:00 2001 From: Thomas Deal Date: Thu, 20 Oct 2016 13:31:33 -0400 Subject: [PATCH] Report fluids correctly in Inventory Combinator --- clusterio_0.0.3/control.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clusterio_0.0.3/control.lua b/clusterio_0.0.3/control.lua index ec898e09..3f05eb81 100644 --- a/clusterio_0.0.3/control.lua +++ b/clusterio_0.0.3/control.lua @@ -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