Code: Select all
for i = 1,#machine.fluidbox do
game.print(i.." ".. machine.fluidbox.get_prototype(i).base_level .. " " .. machine.fluidbox.get_prototype(i).production_type)
end
1 -1 input
2 -1 input
3 1 output
4 1 output
5 1 output
unexpected result for "Basic oil processing"
1 -1 input
2 -1 input -- wrong: output expected
Edit:
My post seems to be a duplicate (sorry. didn't see it). Bug is known and sorted under "won't fix".
viewtopic.php?f=58&t=88092
But can you please update the documentation for get_prototype:
https://lua-api.factorio.com/latest/LuaFluidBox.html
and please tell me a workaround how I can find out if a fluidbox of a crafting machine is an input or an output.