Skip to content

Instantly share code, notes, and snippets.

@sapier
Created January 5, 2015 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapier/281dfd61edbca247e668 to your computer and use it in GitHub Desktop.
Save sapier/281dfd61edbca247e668 to your computer and use it in GitHub Desktop.
local retval, message = os.rename(mobf_world_path .. "/mobf_settings.conf.new",
mobf_world_path .. "/mobf_settings.conf")
if not retval then
minetest.log(LOGLEVEL_ERROR,"MOBF: failed to swap old conf file" ..
" to new one: " .. mobf_world_path .. "/mobf_settings.conf" ..
"(.new): ERR=" .. message)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment