~fgaz/minetest-falling_nodes

5801598513bad0c7ab03e68c9da077efee711f08 — Francesco Gazzetta 6 months ago 3cfdc12
Also grant fast and noclip by default
1 files changed, 5 insertions(+), 1 deletions(-)

M mods/falling_nodes_game/init.lua
M mods/falling_nodes_game/init.lua => mods/falling_nodes_game/init.lua +5 -1
@@ 1,7 1,11 @@
falling_nodes_game = {}

minetest.register_on_newplayer(function(player)
  minetest.set_player_privs(player:get_player_name(), {fly=true})
  minetest.set_player_privs(player:get_player_name(), {
    fast = true,
    fly = true,
    noclip = true,
  })
end)
minetest.register_on_joinplayer(function(player)
  player:override_day_night_ratio(1)