Adds a config option to change world.sleep_offline (#32505)

* Adds a config option to change world.sleep_offline

* Runlevel has no space
This commit is contained in:
Jordan Brown
2017-11-09 00:44:49 -06:00
committed by duncathan salt
parent 6594154e24
commit 73fbac36d7
3 changed files with 14 additions and 2 deletions
@@ -371,4 +371,11 @@ CONFIG_TWEAK(number/mc_tick_rate)
CONFIG_TWEAK(number/mc_tick_rate/ValidateAndSet(str_val))
. = ..()
if (.)
Master.UpdateTickRate()
Master.UpdateTickRate()
CONFIG_DEF(flag/resume_after_initializations)
CONFIG_TWEAK(flag/ValidateAndSet(str_val))
. = ..()
if(. && Master.current_runlevel)
world.sleep_offline = !value