Skip to content

Commit 9b215a5

Browse files
authored
Merge pull request #4921 from chdoc/orders-can-set-labors
make can_set_labors public (for use by idle-crafting)
2 parents 94d734d + d1b3084 commit 9b215a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/lua/orders.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ LaborRestrictionsOverlay.ATTRS{
448448
frame={w=57, h=15},
449449
}
450450

451-
local function can_set_labors()
451+
function can_set_labors()
452452
for _,fs in ipairs(dfhack.gui.getFocusStrings(dfhack.gui.getDFViewscreen(true))) do
453453
if fs:endswith('WORKER_ASSIGNMENT') then
454454
return false

0 commit comments

Comments
 (0)