[1.1.81] LuaEntity.set_filter does not update open GUI
Posted: Sun May 21, 2023 6:53 pm
Calling set_filter on a LuaEntity does not visually update the filter slots in an already open entity gui.
What did you do? Call set_filter(1, "iron-plate") from a Lua Snippet with a filter inserter gui open.
What happened? The filter slots on the filter inserter do not visually update to reflect the new filter. The entity preview and in game sprite correctly update.
What did you expect to happen instead? The filter selection slots should always visually match the actual filters
Does it happen always, once, or sometimes? Always
Reproduction steps:
Open entity gui of filter inserter
call entity.set_filter(...)
A save file is provided with a Lua Snippet to accomplish this.
What did you do? Call set_filter(1, "iron-plate") from a Lua Snippet with a filter inserter gui open.
What happened? The filter slots on the filter inserter do not visually update to reflect the new filter. The entity preview and in game sprite correctly update.
What did you expect to happen instead? The filter selection slots should always visually match the actual filters
Does it happen always, once, or sometimes? Always
Reproduction steps:
Open entity gui of filter inserter
call entity.set_filter(...)
A save file is provided with a Lua Snippet to accomplish this.