Browse Source

rename noarea_privs

main
Hendrik Langer 5 years ago
parent
commit
162785eb24
  1. 4
      init.lua
  2. 4
      settingtypes.txt

4
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_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" 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() function switch_creative:load_areas()
self.astore:from_file(minetest.get_worldpath().."/switch_creative_areas") self.astore:from_file(minetest.get_worldpath().."/switch_creative_areas")
@ -299,7 +299,7 @@ function switch_creative:update_player(player)
end end
end end
local privstring = default_privs local privstring = noarea_privs
if smallest_area.id and switch_creative.area_privs[smallest_area.id] then if smallest_area.id and switch_creative.area_privs[smallest_area.id] then
privstring = switch_creative.area_privs[smallest_area.id] privstring = switch_creative.area_privs[smallest_area.id]
end end

4
settingtypes.txt

@ -4,5 +4,5 @@ switch_creative.owner_privs (Owner privs) string "+creative, +fast, +fly"
# Privs of an areas mod guest # Privs of an areas mod guest
switch_creative.guest_privs (Guest privs) string "-fly, -fast" switch_creative.guest_privs (Guest privs) string "-fly, -fast"
# Default privs # Default privs when not in an area
switch_creative.guest_privs (Default privs) string "-creative, -fast, -fly" switch_creative.noarea_privs (Default privs) string "-creative, -fast, -fly"

Loading…
Cancel
Save