When clearing the bar through script, the bar button is still toggled, even though there is no bar. This makes the player have to click on the button twice when they want to set the bar manually, instead of the normal twice. If the player closes the GUI and opens it again, it's fixed.
Steps to reproduce:
1. Place chest and set bar to somewhere in the chest
2. Run the command /c game.player.selected.get_inventory(defines.inventory.chest).set_bar()
3. Attempt to set the bar manually by clicking the bar button
(For anyone reading who doesn't know what a "bar" is, it's the red X that lets you limit chests.)
[1.1.107] LuaInventory::set_bar without parameters doesn't reset bar button
- _CodeGreen
- Long Handed Inserter
- Posts: 66
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
[1.1.107] LuaInventory::set_bar without parameters doesn't reset bar button
My Mods | If you can't make it perfect, make it adjustable
Re: [1.1.107] LuaInventory::set_bar without parameters doesn't reset bar button
Thanks for the report, this is fixed for 2.0.