Fix a mod storage bug

master
Cédric Ronvel 2020-09-06 21:11:23 +02:00
parent b45f31a6c2
commit 81d6b8568b
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ local astral_day_offset = mod_storage:get_int( "astral_day_offset" )
if astral_day_offset == 0 then
-- First time loading the mod, init it
astral_day_offset = math.random( 1 , 10000 )
mod_storage:set_int( "astral_day_offset", astral_day_offset )
end