From b17acef82aca2128c184799d50445fc29b26044a Mon Sep 17 00:00:00 2001 From: Lily Carpenter Date: Wed, 29 Nov 2023 23:56:01 -0600 Subject: [PATCH] Run pre-commit --- warn-stranded.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warn-stranded.lua b/warn-stranded.lua index 1b6e8c438f..eb6da3c997 100644 --- a/warn-stranded.lua +++ b/warn-stranded.lua @@ -335,7 +335,7 @@ local function getStrandedUnits() end -- Ignore units who are gathering plants or digging to avoid errors with stepladders and weird digging things - if unitIgnored(unit) or (unit.job.current_job and + if unitIgnored(unit) or (unit.job.current_job and (unit.job.current_job.job_type == df.job_type.GatherPlants or df.job_type.attrs[unit.job.current_job.job_type].type == 'Digging')) then table.insert(ensure_key(ignoredGroup, walkGroup), unit)