[2.1.7] Inventory LuaGuiElement glitching when writing to slots_per_row
Posted: Tue Jun 23, 2026 9:39 pm
Create a new world and do the following commands, in order.
When writing a (different) value to slots_per_row, the element flickers for a frame, and then goes back to as it was before.
When writing a (different) value to slots_per_row, the element flickers for a frame, and then goes back to as it was before.
Code: Select all
/c inv = game.player.gui.screen.add{type = "inventory"}
/c inv.inventory = game.player.get_inventory(1)
/c inv.slots_per_row = 1