Commit 465cfe5b authored by Fedja Beader's avatar Fedja Beader
Browse files

Save state on ".safe_mode on"

parent 5bf0342a
......@@ -137,6 +137,7 @@ core.register_chatcommand("safe_mode", {
elseif args[1] == "on" then
state.enabled = true
mod_storage:set_string("safe_mode_state", minetest.serialize(state))
elseif args[1] == "off" then
state.enabled = false
local n = tonumber(args[2])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment