Browse Source

don't change time settings for players with settime priv

main
Hendrik Langer 3 years ago
parent
commit
1e37a7e458
  1. 4
      player.lua

4
player.lua

@ -147,7 +147,9 @@ function creative_regions:player_enter_region(player, new_privs_table, initializ
hunger_ng.configure_hunger(name, 'enable') hunger_ng.configure_hunger(name, 'enable')
end end
creative_regions:save_player_day_night_ratio(player) creative_regions:save_player_day_night_ratio(player)
player:override_day_night_ratio(nil) if not minetest.check_player_privs(name, {settime=true}) then
player:override_day_night_ratio(nil)
end
end end
end end

Loading…
Cancel
Save