From f52f6618b798c0a7cc6d584fb1e0e84fd7133064 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 3 May 2019 01:56:48 -0400 Subject: [PATCH] actually bail-out on protection violation --- minedot.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/minedot.lua b/minedot.lua index 5c4b41d..e8f8141 100644 --- a/minedot.lua +++ b/minedot.lua @@ -65,6 +65,7 @@ local function place(itemstack,player,pointed) local pos = pointed.above if minetest.is_protected(pos,name) and not minetest.check_player_privs(name,{protection_bypass = true}) then minetest.record_protection_violation(pos,name) + return end local isDouble = string.sub(itemstack:get_name(),-6,-1) == "double" if not takeMaterials(player, sneak, isDouble and doubleMaterials or singleMaterials) then return end