Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Template for new versions:
## New Features

## Fixes
- Fix processing error in the overlay that displays unit preferences in the baron selection list

## Misc Improvements

Expand Down
2 changes: 1 addition & 1 deletion plugins/lua/sort/diplomacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ local function get_preferences(unit)
if not unit then return {} end
local preferences = {}
for _, pref in ipairs(unit.status.current_soul.preferences) do
if pref.type == df.unitpref_type.LikeItem and pref.active then
if pref.type == df.unitpref_type.LikeItem and pref.flags.visible then
table.insert(preferences, make_item_description(pref.item_type, pref.item_subtype))
end
end
Expand Down