Browse Source

don't change time settings for players with settime priv

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

2
player.lua

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

Loading…
Cancel
Save