Skip to content

Commit

Permalink
update use of unit_preference.active to unit_preference.flags.visible
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Feb 15, 2025
1 parent a76a39a commit 4af65c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/caravan/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ end
local function analyze_noble(unit, risky_items, banned_items)
for _, preference in ipairs(unit.status.current_soul.preferences) do
if preference.type == df.unitpref_type.LikeItem and
preference.active
preference.flags.visible
then
register_item_type(risky_items, preference, banned_items)
end
Expand Down

0 comments on commit 4af65c0

Please sign in to comment.