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

Post Reply
User avatar
_CodeGreen
Long Handed Inserter
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

Post 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.)
My Mods | If you can't make it perfect, make it adjustable

Genhis
Factorio Staff
Factorio Staff
Posts: 132
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post by Genhis »

Thanks for the report, this is fixed for 2.0.

Post Reply

Return to “Fixed for 2.0”