actually bail-out on protection violation

master
Vanessa Dannenberg 2019-05-03 01:56:48 -04:00
parent 616f2d7777
commit f52f6618b7
1 changed files with 1 additions and 0 deletions

View File

@ -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