Skip to content

Commit

Permalink
make persistState and readPersistentConfig functions local, no need t…
Browse files Browse the repository at this point in the history
…o expose them
  • Loading branch information
Birkow committed Sep 29, 2024
1 parent 69be8f5 commit e5e6fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/lua/autobutcher/nestboxes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit e5e6fe6

Please sign in to comment.