We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30eb002 commit 18db95fCopy full SHA for 18db95f
nestboxes.lua
@@ -93,7 +93,11 @@ local function persist_state()
93
end
94
95
local function read_persistent_config(key, index)
96
- return dfhack.internal.readPersistentSiteConfigInt(key, index)
+ if dfhack.internal.readPersistentSiteConfigInt ~= nil then
97
+ return dfhack.internal.readPersistentSiteConfigInt(key, index)
98
+ else
99
+ return nil
100
+ end
101
102
103
local function migrate_enabled_status_from_cpp_nestboxes()
@@ -384,7 +388,7 @@ local function handle_eggs(eggs)
384
388
if ignore then
385
389
print_details(("race is ignored, nothing to do here"))
386
390
return
387
- end if;
391
392
393
print_details(("max_eggs %s "):format(max_eggs))
394
print_details(("count_children %s "):format(count_children))
0 commit comments