[2.1.15] get_widget_position on "quickbar-slot" type doesn't succeed when missing "quality" in filter table
Posted: Mon Aug 24, 2026 6:46 pm
This is a loose follow-up to 134386 and the rework of LuaSimulation::get_widget_position.
Steps to reproduce:
Go to Line 76 of data.lua, or Ctrl-F "SHEMP EDIT" to find it.
Expected result:
Because "quality" is documented to be optional on the ItemFilter page, I expect this call to successfully return the position of the inserters from the Quickbar, as if the string variant of ItemFilter had been used:
I will also note that using an ItemFilter table without "quality" does succeed when querying the new "simple-item-with-quality-slot". (otherwise I wouldn't consider this a bug)
Steps to reproduce:
- Download the reproduction mod above.
- Enter a game world and view the "Entity pipette" Tips and Tricks item.
- The simulation will fail after placing the Stone furnaces, while attempting to access the Burner inserters from the Quickbar.
Go to Line 76 of data.lua, or Ctrl-F "SHEMP EDIT" to find it.
Code: Select all
local target = game.simulation.get_widget_position({type = "quickbar-slot", filter = {name="burner-inserter"}})
Because "quality" is documented to be optional on the ItemFilter page, I expect this call to successfully return the position of the inserters from the Quickbar, as if the string variant of ItemFilter had been used:
Code: Select all
local target = game.simulation.get_widget_position({type = "quickbar-slot", filter = "burner-inserter"})