From 6174196b50ddc1bc0ae3e2607a1a3d8aa245c847 Mon Sep 17 00:00:00 2001 From: Isidor Zeuner Date: Sat, 11 Nov 2017 18:03:56 +0100 Subject: [PATCH] bugfix --- worldedit_commands/safe.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worldedit_commands/safe.lua b/worldedit_commands/safe.lua index 520f875..ee956b4 100644 --- a/worldedit_commands/safe.lua +++ b/worldedit_commands/safe.lua @@ -9,7 +9,12 @@ area_protection.interaction_restrictions = function( player_name ) if area_protection.areas then - if minetest.check_player_privs(name, {areas = true}) then + if minetest.check_player_privs( + player_name, + { + areas = true + } + ) then return false end return true