Skip to content

Commit

Permalink
get any citizen if no unit is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Oct 1, 2023
1 parent 55d0463 commit 43a22b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modtools/create-item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ local function createItem(mat, itemType, quality, creator, description, amount)
end

local function get_first_citizen()
local citizens = dfhack.units.getCitizens()
local citizens = dfhack.units.getCitizens(true)
if not citizens or not citizens[1] then
qerror('Could not choose a creator unit. Please select one in the UI')
end
Expand Down

0 comments on commit 43a22b3

Please sign in to comment.