Page 1 of 1

[1.1.107] LuaInventory::set_bar without parameters doesn't reset bar button

Posted: Mon May 27, 2024 7:19 pm
by _CodeGreen
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.)

Re: [1.1.107] LuaInventory::set_bar without parameters doesn't reset bar button

Posted: Mon May 27, 2024 8:36 pm
by Genhis
Thanks for the report, this is fixed for 2.0.