From 1e37a7e458f747829a9d2575f7c343fbab6d0d47 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Sat, 4 Dec 2021 17:14:07 +0100 Subject: [PATCH] don't change time settings for players with settime priv --- player.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/player.lua b/player.lua index feb421b..c27aa45 100644 --- a/player.lua +++ b/player.lua @@ -147,7 +147,9 @@ 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) - 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