From 162785eb2408a2c68795748244844fd9ea21460c Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 26 May 2020 15:56:48 +0200 Subject: [PATCH] rename noarea_privs --- init.lua | 4 ++-- settingtypes.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index e8676af..5d2786a 100644 --- a/init.lua +++ b/init.lua @@ -9,7 +9,7 @@ switch_creative.area_privs = {} areas_owner_privs = minetest.settings:get("switch_creative.owner_privs") or "+creative, +fast, +fly" areas_guest_privs = minetest.settings:get("switch_creative.guest_privs") or "-fly, -fast" -default_privs = minetest.settings:get("switch_creative.default_privs") or "-creative, +fast, -fly" +noarea_privs = minetest.settings:get("switch_creative.noarea_privs") or "-creative, +fast, -fly" function switch_creative:load_areas() self.astore:from_file(minetest.get_worldpath().."/switch_creative_areas") @@ -299,7 +299,7 @@ function switch_creative:update_player(player) end end - local privstring = default_privs + local privstring = noarea_privs if smallest_area.id and switch_creative.area_privs[smallest_area.id] then privstring = switch_creative.area_privs[smallest_area.id] end diff --git a/settingtypes.txt b/settingtypes.txt index 1adda7c..c49a48d 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -4,5 +4,5 @@ switch_creative.owner_privs (Owner privs) string "+creative, +fast, +fly" # Privs of an areas mod guest switch_creative.guest_privs (Guest privs) string "-fly, -fast" -# Default privs -switch_creative.guest_privs (Default privs) string "-creative, -fast, -fly" +# Default privs when not in an area +switch_creative.noarea_privs (Default privs) string "-creative, -fast, -fly"