Intersects_protection(): Remove from Minetest Game

Add compatibility code with deprecation warning.
This commit is contained in:
paramat 2018-01-27 00:52:14 +00:00 committed by paramat
parent 496a1a24d2
commit 8f85ca57f3
3 changed files with 8 additions and 41 deletions

View file

@ -490,7 +490,7 @@ function default.sapling_on_place(itemstack, placer, pointed_thing,
return itemstack
end
-- Check tree volume for protection
if default.intersects_protection(
if minetest.intersects_protection(
vector.add(pos, minp_relative),
vector.add(pos, maxp_relative),
player_name,