diff options
Diffstat (limited to 'mesecons_commandblock')
-rw-r--r-- | mesecons_commandblock/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua index e41c098..f68ac4a 100644 --- a/mesecons_commandblock/init.lua +++ b/mesecons_commandblock/init.lua @@ -174,7 +174,8 @@ end local function can_dig(pos, player) local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") - return owner == "" or owner == player:get_player_name() + return owner == "" or owner == player:get_player_name() or + minetest.check_player_privs(player, "protection_bypass") end minetest.register_node("mesecons_commandblock:commandblock_off", { |