-- Check for a volume intersecting protection
function default.intersects_protection(minp, maxp, player_name, interval)
minetest.log("warning", "default.intersects_protection() is " ..
- "deprecated, use minetest.intersects_protection() instead.")
- minetest.intersects_protection(minp, maxp, player_name, interval)
+ "deprecated, use minetest.is_area_protected() instead.")
+ minetest.is_area_protected(minp, maxp, player_name, interval)
end
return itemstack
end
-- Check tree volume for protection
- if minetest.intersects_protection(
+ if minetest.is_area_protected(
vector.add(pos, minp_relative),
vector.add(pos, maxp_relative),
player_name,