|
|
@ -69,7 +69,7 @@ end |
|
|
|
function creative_regions:restore_player_day_night_ratio(player) |
|
|
|
local pmeta = player:get_meta() |
|
|
|
local current_day_night_ratio = player:get_day_night_ratio() |
|
|
|
local saved_day_night_ratio = pmeta:get_int("creative_region_day_night_ratio") |
|
|
|
local saved_day_night_ratio = pmeta:get_int("creative_regions_day_night_ratio") |
|
|
|
if saved_day_night_ratio ~= nil and saved_day_night_ratio ~= DAYNIGHT_UNSET then |
|
|
|
if saved_day_night_ratio == DAYNIGHT_AUTO then saved_day_night_ratio = nil end |
|
|
|
player:override_day_night_ratio(saved_day_night_ratio) |
|
|
|