But this "bar" is treated as zero-based index, instead of 1-based index as all other method which work with inventory bar
Code: Select all
-- setting "bar" to 10, so only first row should be allowed
-- but "get_bar" function returns 11
surface.create_entity({name = 'iron-chest', bar = 10}).get_inventory(defines.inventory.chest).get_bar()