Jump to content

getMaxVolume() and containerHub


Verliezer

Recommended Posts

I assumed that a containerHub would be similar as a container when using LUA API's.

 

for _, container in pairs(containers) do
    maxVolume = container.getMaxVolume()
    currVolume = container.getItemsVolume()
    system.print(maxVolume.." - "..currVolume)
end

 This simple script return 0.0 for the maxVolume when I connect the container through a containerHub to the programming board. CurrVolume contains the right value so getItemsVolume() is working for a hub.
When connecting the container directly to the programboard the maxVolume returns the correct value, however the currVolume is 0.0.

Bug?

Edited by Verliezer
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...