summaryrefslogtreecommitdiff
path: root/legacy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'legacy.lua')
-rw-r--r--legacy.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy.lua b/legacy.lua
index b689cc0..01db69a 100644
--- a/legacy.lua
+++ b/legacy.lua
@@ -5,7 +5,7 @@ minetest.register_chatcommand("legacy_load_areas", {
params = "<version>",
description = "Loads, converts, and saves the areas from"
.." a legacy save file.",
- privs = {areas=true, server=true, privs=true},
+ privs = {areas=true, server=true},
func = function(name, param)
minetest.chat_send_player(name, "Converting areas...")
local version = tonumber(param)
@@ -86,7 +86,7 @@ end
-- Checks if a node is owned by you
function areas.isNodeOwner(pos, name)
- if minetest.check_player_privs(name, {areas=true}) then
+ if minetest.check_player_privs(name, areas.adminPrivs) then
return true
end
for id, area in pairs(areas:getAreasAtPos(pos)) do