master #9

Merged
NO11 merged 42 commits from VoxeLibre/VoxeLibre:master into master 2021-10-09 23:19:44 +02:00
1 changed files with 4 additions and 5 deletions
Showing only changes of commit a410d17306 - Show all commits

View File

@ -6,7 +6,6 @@ minetest.register_privilege("maphack", {
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
local meta = player:get_meta()
if meta:get_int("fly_changed") == 1 then return end
@ -14,9 +13,9 @@ minetest.register_on_joinplayer(function(player)
if minetest.is_creative_enabled(name) then
fly = true
end
minetest.set_player_privs(name, {
fly = fly,
})
local player_privs = minetest.get_player_privs(name)
player_privs.fly = fly
minetest.set_player_privs(name, player_privs)
end)
for _, action in pairs({"grant", "revoke"}) do