Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion exp_legacy/module/modules/gui/toolbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ end
--- Get the top order based on the players settings
Gui.inject_top_flow_order(function(player)
local order = ToolbarState:get(player)

-- Check the type of order must be a table
if type(order) ~= "table" then
error("Invalid order type (table expected): " .. type(order))
return {}
end
local elements = {}
for index, state in ipairs(order) do
elements[index] = Gui.defines[state.element_uid]
Expand Down