Code: Select all
if entity.type == "fluid-wagon" then
for n=1, #entity.fluidbox do
log("get fluidbox "..n.."/"..#entity.fluidbox)
capacity = capacity + entity.fluidbox.get_capacity(n)
end
end
#entity.fluidbox returning 1
Code: Select all
if entity.type == "fluid-wagon" then
for n=1, #entity.fluidbox do
log("get fluidbox "..n.."/"..#entity.fluidbox)
capacity = capacity + entity.fluidbox.get_capacity(n)
end
end