From 43a22b312666e6ca0478987942676b86b1d77631 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 1 Oct 2023 01:14:39 -0700 Subject: [PATCH] get any citizen if no unit is specified --- modtools/create-item.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modtools/create-item.lua b/modtools/create-item.lua index b6325657c4..031f5c56b1 100644 --- a/modtools/create-item.lua +++ b/modtools/create-item.lua @@ -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