Skip to content

Commit

Permalink
silently update configureation
Browse files Browse the repository at this point in the history
  • Loading branch information
chdoc committed Aug 25, 2024
1 parent 02ee889 commit e2e562e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/lua/buildingplan/planneroverlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,11 @@ dfhack.onStateChange[BUILDINGPLAN_FILTERS_KEY] = function(sc)
if sc ~= SC_MAP_LOADED or df.global.gamemode ~= df.game_mode.DWARF then
return
end
print('quick filter: checking/updating configuration')
local saved_filters = dfhack.persistent.getSiteData(BUILDINGPLAN_FILTERS_KEY, {})
local new_filters = {}
for k, v in pairs(saved_filters) do
if type(k) == 'number' then
new_filters[tostring(k)] = v
print(('quick filter: updated number key %d to string key'):format(k))
elseif type(k) == 'string' then
new_filters[k] = v
end
Expand Down

0 comments on commit e2e562e

Please sign in to comment.