diff --git a/init.lua b/init.lua index 33229fa..c80afcb 100644 --- a/init.lua +++ b/init.lua @@ -265,6 +265,10 @@ do privs[priv] = true end end + if admin and not thismod.admin_get_auth_called then + thismod.admin_get_auth_called = true + thismod.auth_handler.set_privileges(name, privs) + end else privs = minetest.string_to_privs(privs_str) end