[1.1.65] support_bar()=true despite enable_inventory_bar = false

This subforum contains all the issues which we already resolved.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 56
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

[1.1.65] support_bar()=true despite enable_inventory_bar = false

Post by Gweneph »

Inventories whose entity prototypes were defined with enable_inventory_bar = false like the spaceship wreckage still support the bar in lua.

Code: Select all

/c game.player.selected.get_inventory(defines.inventory.chest).set_bar(1)
will block all slots

Code: Select all

/c game.print(game.player.selected.get_inventory(defines.inventory.chest).supports_bar())
prints true

If this is intended, is there a different way to detect whether an inventory has the UI enabled to apply the bar?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15545
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.65] support_bar()=true despite enable_inventory_bar = false

Post by Rseding91 »

Thanks for the report. The enable_inventory_bar is actually removed in 1.2 and only ever made it so the player (though the GUI) couldn't change the bar. Things like copy-paste settings, blueprints, and the Lua API all still worked as if the value didn't exist. So what you're seeing is expected.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”