diff --git a/plugins/lua/autobutcher/nestboxes.lua b/plugins/lua/autobutcher/nestboxes.lua index a2b2189706..215a8b3945 100644 --- a/plugins/lua/autobutcher/nestboxes.lua +++ b/plugins/lua/autobutcher/nestboxes.lua @@ -45,7 +45,7 @@ end --getDefaultState --------------------------------------------------------------------------------------------------- state = state or getDefaultState() --------------------------------------------------------------------------------------------------- -function persistState() +local function persistState() printDetails(('start persistState')) local state_to_persist = {} state_to_persist = utils.clone(state) @@ -61,7 +61,7 @@ function persistState() printDetails(('end persistState')) end --persistState --------------------------------------------------------------------------------------------------- -function readPersistentConfig(key, index) +local function readPersistentConfig(key, index) if dfhack.internal.readPersistentSiteConfigInt ~= nil then return dfhack.internal.readPersistentSiteConfigInt(key, index) end