Fix protection check

master
ezhh 2017-04-07 01:09:47 +01:00
parent 1a3569b721
commit ecfcf8cd0d
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ minetest.register_craftitem("abriflame:flint", {
z = pointed_thing.under.z})
if minetest.get_node(pos).name ~= "air" or
minetest.is_protected(pos, user:get_player_name()) or
minetest.is_protected(pointed_thing.above, user:get_player_name()) then
return itemstack
end