This commit is contained in:
unknown 2022-03-17 18:53:21 -04:00
parent 44d687f125
commit b79f43ab3b

View File

@ -64,6 +64,10 @@ minetest.register_privilege("creative", {
description = "creative mode",
give_to_singleplayer = false,
give_to_admin = false,
on_revoke = function(name, revoker_name)
--this is a hack to work around https://github.com/minetest-mods/i3/issues/61
i3.set_tab(minetest.get_player_by_name(name), "inventory")
end
})
if minetest.settings:get_bool("creative_mode") then